ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule

ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule:  (iptables failed: iptables --wait -t nat -I DOCKER -i br-2add1a39bc5d -j RETURN: iptables: No chain/target/match by that name.

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

service docker restart

修改了防火墙的数据,比如开放端口,也需要重启下docker

firewall-cmd --zone=public --add-port=80/tcp --permanent
systemctl restart firewalld.service
​​​​​​​service docker restart
 

你可能感兴趣的:(linux)