docker报错笔记记录

关于在docker中遇到的一些容器启动问题

在启动tomcat的时候,出现报错:

iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 80 -j DNAT --to-destination 172.17.0.2:3306 ! -i docker0: iptables: No chain/target/match by that name.

解决方案:

重新构建docker0网络

命令:


pkill docker
iptables -t nat -F
ifconfig docker0 down
brctl delbr docker0
docker -d
service docker restart
posted @ 2022-01-16 17:01  影梦无痕  阅读(27)  评论(0)    收藏  举报