Docker 启动时报错:iptables:No chain/target/match by the name

 

问题:jenkins的docker containner启动失败,报错:failed programming external connectivity … iptables: No chain/target/match by that name”

docker 服务启动的时候,docker服务会向iptables注册一个链,以便让docker服务管理的containner所暴露的端口之间进行通信

通过命令iptables -L可以查看iptables 链

在开发环境中,如果你删除了iptables中的docker链,或者iptables的规则被丢失了(例如重启firewalld),docker就会报iptables error例如:failed programming external connectivity … iptables: No chain/target/match by that name

要解决这个问题,只要重启docker服务,之后,正确的iptables规则就会被创建出来

引用链接: https://blog.csdn.net/tiandaochouqin99/article/details/77367912

猜你喜欢

转载自blog.csdn.net/qingdaoxdd/article/details/80925911