Error response from daemon: Cannot start container ···-i docker0: iptables: No chain/target/match by

docker启动时候报错如下:

[root@git local]# docker run --name=docker_nginx -p 800:80 -v /etc/nginx/conf.d:/etc/nginx/conf.d -d nginx 
9c9af45a7a7cb2d8e5f34b9dc653c38127e7baba4aed8580985a156946d896b4
Error response from daemon: Cannot start container 9c9af45a7a7cb2d8e5f34b9dc653c38127e7baba4aed8580985a156946d896b4: 
iptables failed: iptables -t nat -A DOCKER -p tcp -d 0/0 --dport 800 -j DNAT --to-destination 172.17.0.6:80 ! -i docker0: iptables: No chain/target/match by that name.
 (exit status 1)

解决办法:重建docker0网络恢复

依次执行下面的命令:

pkill docker 

iptables -t nat -F 

ifconfig docker0 down 

brctl delbr docker0 

docker -d 

service docker restart

猜你喜欢

转载自blog.csdn.net/u012599988/article/details/81539615