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

浙公网安备 33010602011771号