ERROR: Failed to Setup IP tables
2023-10-24 本文已影响0人
爱吃蚊子爱子钰
1. 报错信息
# docker-compose up -d
Creating network "2023-10-25-xcheck-net" with the default driver
ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-7b14cc2d1da4 -j RETURN: iptables: No chain/target/match by that name.
(exit status 1))
![](https://img.haomeiwen.com/i525867/9222e0cdc7e60012.png)
2. 原因分析
原因是关闭防火墙之后docker需要重启
3. 解决办法
重启Docker服务解决
service docker restart