启动 docker 容器时报错:docker0: iptables: No chaintargetmatch by that name.

启动 docker 容器时报错:docker0: iptables: No chaintargetmatch by that name.,第1张

启动 docker 容器时报错:docker0: iptables: No chain/target/match by that name. 问题

启动 docker 容器时报错:

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

解决方案

重启 docker 服务就行了

systemctl restart docker

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

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

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

发表评论

登录后才能评论

评论列表(0条)

保存