1. 程式人生 > >docker安裝mysql5.7出現錯誤 docker: Error response from daemon。。。。。

docker安裝mysql5.7出現錯誤 docker: Error response from daemon。。。。。

開發十年,就只剩下這套架構體系了! >>>   

錯誤現象 =>

啟動 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     &nbs