[root@docker ~]# docker run -itd --name wordpress -p 88:80 wordpress:v1
b77482f8075042e9cc6723d6922a1211c37d99339678a00cc040396b23d40ef0
docker: Error response from daemon: driver failed programming external connectivity on endpoint wordpress (77cb6b1ea5387ac97b1b90178b2ccda831aa9713e0e9a83be057083fed66fc69): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 88 -j DNAT --to-destination 172.17.0.2:80 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1)).docker
解决方法:重建docker0网络恢复网络
pkill dockertcp
iptables -t nat -Fwordpress
ifconfig docker0 down.net
brctl delbr docker03d
docker -drest
service docker restartblog
我为何会出现这样的错误呢 ,由于我在docker运行的时候,执行了systemctl stop firewalld,关闭防火墙可能会清空docker规则。
————————————————
版权声明:本文为CSDN博主「流一&」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处连接及本声明。
原文连接:https://blog.csdn.net/czz1141979570/article/details/78752671ip