docker之故障解决

1.docker 容器启动时报错:

[root@localhost ~]# docker start 95c22570b778
Error response from daemon: driver failed programming external connectivity on endpoint lamp (1be839e734578d17a007bb0cc6c4f3b2f177743cd2a4e74bccce9b7c9ae54e35):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 32787 -j DNAT --to-destination 172.17.0.2:3306 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1))
Error: failed to start containers: 95c22570b778

解决方案:在能ping通外网的前提下进行如下操作

1. pkill docker
2. iptables -t nat 
3. ifconfig docker0 down
4. brctl delbr docker0
5. systemctl restart docker

你可能感兴趣的:(Docker)