iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 3306 -j DNAT --to-destinatio

2023-02-18 16:14:31 浏览数 (1)

错误日志

代码语言:javascript复制
[root@VM-0-7-centos conf]# docker restart mysql5.7 
Error response from daemon: Cannot restart container mysql5.7: driver failed programming external connectivity on endpoint mysql5.7 (dfd25296808b083e2b352e77d9b818172101a2e52df5961973d0c6800df43ad7):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 3306 -j DNAT --to-destination 172.17.0.2:3306 ! -i docker0: iptables: No chain/target/match by that name.
 (exit status 1))

产生原因

修改过防火墙配置(从无到有, firewalld)

解决办法

重启 docker

代码语言:javascript复制
systemctl restart docker

0 人点赞