docker 容器 iptables: No chain/target/match by that name.

[root@iZb6mlw07n8yxtZ ~]# docker start 523bcf307cb1
Error response from daemon: driver failed programming external connectivity on endpoint jenkins (95f93c74da8b760a2a7426ded56950694f276125c511fd0e214dbafedc93d8ca):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8080 -j DNAT --to-destination 192.168.0.2:8080 ! -i docker0: iptables: No chain/target/match by that name.
 (exit status 1))

出现这种问题的可能原因,设置了宿主机防火墙

解决方案

重启docker服务后再启动容器

systemctl restart docker 

猜你喜欢

转载自blog.csdn.net/weixin_43577800/article/details/84928557