docker安装mysql5.7出现错误 docker: Error response from daemon。。。。。

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

错误现象 =>

启动 rancher server 时出现网络故障,如下:

docker: Error response from daemon: driver failed programming external connectivity on endpoint peaceful_sammet (0ffcb446e5de6905d872c4e20080243fce8f9928d68b857f6b4a23eadc38f2f3): iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8080 -j DNAT --to-destination 172.17.0.2:8080 ! -i docker0: iptables: No chain/target/match by that name.

 (exit status 1).
 

解决办法 =>

pkill docker                         #终止进程
iptables -t nat -F                 #清空nat表的所有链
ifconfig docker0 down        #停止docker默认网桥
brctl delbr docker0             #删除网桥
systemctl restart docker       #重启docker

转载于:https://my.oschina.net/u/3575212/blog/3027991

你可能感兴趣的:(docker安装mysql5.7出现错误 docker: Error response from daemon。。。。。)