Error response from daemon: driver failed programming external connectivity on endpoint test : (iptables failed: iptables --wait -t nat -A DOCKER。。。: No chain/target/match by that name.

dockers端口映射报错:

/usr/bin/docker-current: Error response from daemon: driver failed programming external connectivity on endpoint test (379fd5245e03cfe8ad06a22184a7bdb8c58c40d70702f3fb0dd231f6b77f2c38):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 1521 -j DNAT --to-destination 172.18.0.4:1521 ! -i docker0: iptables: No chain/target/match by that name.  (exit status 1)).

解决方法
docker服务启动时定义的自定义链DOCKER被清除
重启即可systemctl restart docker

posted @ 2021-07-13 16:38  xing柠檬  阅读(116)  评论(0编辑  收藏  举报