docker报错之路(1) ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule

报错:

[isunland@localhost spug]$ sudo  docker-compose up -d
Creating network "spug_default" 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-de222ce841cd -j RETURN: iptables: No chain/target/match by that name.
 (exit status 1))
[isunland@localhost spug]$ 

原因是关闭防火墙之后docker需要重启,执行以下命令重启docker即可:

service docker restart

posted @ 2022-08-11 09:37  muzlei  阅读(208)  评论(0)    收藏  举报