docker 报错:driver failed programming external connectivity on endpoint

错误具体输出为:

docker: Error response from daemon: driver failed programming external connectivity on endpoint myrabbit1 (0b0f1f1c5335a7e35d892caa31d335f945d1f43eb41b981a1396a0902afa6fc4):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 15672 -j DNAT --to-destination 172.17.0.2:15672 ! -i docker0: iptables: No chain/target/match by that name.

场景:看错误来判断应该是端口映射或者网络出现了问题,端口映射问题几率较大!

参考连接:
https://stackoverflow.com/questions/44414130/docker-on-windows-10-driver-failed-programming-external-connectivity-on-endpoin
https://github.com/docker/for-win/issues/1038
docker 报错:driver failed programming external connectivity on endpoint_第1张图片
所以我尝试重启了一下 docker 并重启容器,执行:

systemctl restart docker
docker start .....

结果成功!

你可能感兴趣的:(Docker,技术)