zl程序教程

您现在的位置是:首页 >  其他

当前栏目

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

2023-03-07 09:44:42 时间

错误日志

[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

systemctl restart docker