docker遇到报错iptables

docker遇到报错iptables,第1张

docker遇到报错iptables

docker遇到报错iptables,

docker: Error response from daemon: driver failed programming external connectivity on endpoint zookeeper01 (eae328eb5eb7c3857ef6c260b95ae5b79b614bb4bed84b3a3fd6b9a9cc7827b2): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 2222 -j DNAT --to-destination 172.17.0.3:2181 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1)).

原因:开启防火墙,然后docker容器关闭,再次启动就会出现这种情况,然后我在防火墙开启的状态下重启docker,再次启动容器就正常了,之后就没有问题了。

我一开始以为是防火墙没开,特意去查了一下,后来发现不是,最后重启docker重新安装就好了。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5694104.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存