1. 程式人生 > >docker: Error response from daemon: driver failed programming external connectivity on endpoint jolly_shockley

docker: Error response from daemon: driver failed programming external connectivity on endpoint jolly_shockley

art fail mon tar dport ons ogr nbsp tin

1. docker 啟動image錯誤

docker: Error response from daemon: driver failed programming external connectivity on endpoint jolly_shockley (957a1271cd0ae4f9f28163b7cdf5c17d6110fcd6ccd2ca79f2cf0ab8c67dfd52): (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.

(exit status 1)).

原因: docker服務啟動時定義的自定義鏈DOCKER由於某種原因被清掉

解決方法:

重啟docker服務及可重新生成自定義鏈DOCKER

systemctl restart docker

docker: Error response from daemon: driver failed programming external connectivity on endpoint jolly_shockley