Docker: Error response from daemon: Cannot restart container xxx: driver failed programming external

场景描述:

 服务访问不了,尝试重启相应容器后,提示如下异常:

Error response from daemon: Cannot restart container breeze: driver failed programming external connectivity on endpoint breeze (9863f65cad3c44a4af69c4099239bc1a422******************):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0

原因分析,docker服务启动后,不能重启宿主机网络,否则就出现上述问题。

解决方式:

重启docker服务,重启相应容器:

systemctl restart docker

docker restart odoo

posted @ 2021-02-23 11:55  hello-Jesson  阅读(2144)  评论(0编辑  收藏  举报