Docker入门--常见问题(八)

1.docker start {Containerid}或者docker start {ContainerName} 报错

通过docker exec -it Containerid --logs,查看日志如下:

Error response from daemon: Container  is not running

通过docker start Containerid ,报如下错误:

Error response from daemon: driver failed programming external connectivity on endpoint mysql01 (d31b5f13dbb5d23b20368cb631c1113701b60353bac7e1529adea5f296585a99):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 3306 -j DNAT --to-destination 192.168.0.2:3306 ! -i br-fd32359c3a3f: iptables: No chain/target/match by that name.

遇到此类问题,多半重启docker就可以了,如下命令

service docker restart
or
systemctl restart docker

你可能感兴趣的:(docker)