错误代码如下:
/usr/bin/docker-current: Error response from daemon:
driver failed programming external connectivity on endpoint mysql_master
(c7a4d7518ade91a35ffb437b8fda9de7a15dbeb7860b5a41ee7f27c4cc55c54a):
iptables failed:
iptables –wait -t nat -A DOCKER -p tcp -d 0/0 –dport 29001 -j DNAT
–to-destination 172.17.0.3:3306 ! -i docker0: iptables: No chain/target/match by that name.
网上查询的解决方式如下:
pkill docker
iptables -t nat -F
ifconfig docker0 down
brctl delbr docker0
docker -d
service docker restart
2018.04.10修改:
关闭所有的容器后重启docker即可
systemctl restart docker