docker异常:Error response from daemon: driver failed programming external connectivity on endpoint

分类:计算机 | 微服务 | docker | 综合 311
更新:2021-04-12 00:32:47
编辑

异常描述

在创建docker容器时报错:docker: Error response from daemon: driver failed programming external connectivity on endpoint 9999 (46b7917c940f7358948e55ec2df69a4dec2c6c7071b002bd374e8dbf0d40022c): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 86 -j DNAT --to-destination 162.27.0.2:80 ! -i docker0: iptables: No chain/target/match by that name

异常分析

docker服务启动时定义的自定义链DOCKER被清除

异常解决

重启docker即可

systemctl restart docker