Docker异常: driver failed programming external connectivity on endpoint ... iptables: No chain

问题现场

docker: Error response from daemon: driver failed programming external connectivity on endpoint mysql5.6container (9e00a1b6f453bb44e1217acdb8732734322db8088b38e057a5ff17b6d3ec2941):  (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.

原因:

docker服务启动时定义的自定义链DOCKER由于某种原因被清掉
重启docker服务及可重新生成自定义链DOCKER

解决:
 

重启docker服务后再启动容器
systemctl restart docker

你可能感兴趣的:(docker)