docker failed to start

When there are mistakes when starting docker mapped to host: / usr / bin / docker-current: Error response from daemon: driver failed programming external connectivity on endpoint sc_mysql (1bc03030afe9f722ae1e6b46166172a70cf87bcc3f02f0acdac0be2a7f0f0036):

(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.

[Root @ seichung] pkill docker # terminate the process

[Root @ seichung] iptables -t nat -F # Clear all chains of nat table

[Root @ seichung] ifconfig docker0 down # stop docker default bridge

[Root @ seichung] yum install bridge-utils -y # part of the machine can not be used brctl, so you need to install in advance

[Root @ seichung] brctl delbr docker0 # delete bridge

[Root @ seichung] systemctl restart docker # reboot

After docker docker image is successfully mapped, add the chain iptables -nL belongs on iptables

Guess you like

Origin www.cnblogs.com/wangzhijiang/p/11613083.html