/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@joker ~] pkill docker #終止進(jìn)程
[root@joker ~] iptables -t nat -F #清空nat表的所有鏈
[root@joker ~] ifconfig docker0 down #停止docker默認(rèn)網(wǎng)橋
[root@joker ~] yum install bridge-utils -y # 部分機(jī)器是無(wú)法使用brctl揍庄,所以需要提前安裝
[root@joker ~] brctl delbr docker0 #刪除網(wǎng)橋
[root@joker ~] systemctl restart docker #重啟docker
docker鏡像成功映射后鲫寄,會(huì)在 iptables 上添加所屬的鏈