docker出现 Error response from daemon: driver failed programming external connectivity on endpoint pen

Posted 最小的帆也能远航

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker出现 Error response from daemon: driver failed programming external connectivity on endpoint pen相关的知识,希望对你有一定的参考价值。

现象:

[root@xxxh ~]# docker run -d --restart=always -p 80:80 rancher/server
9d918ae01d60dc5ad749f98cc93fc144231051c7f8ab7a32d873ab6b3157fd38
docker: Error response from daemon: driver failed programming external connectivity on endpoint pensive_panini (fb0be019dff5a5824452718fa556c5d8264e76a2addacadbaf1b8fc23cae2855):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 80 -j DNAT --to-destination 10.10.100.2:80 ! -i docker0: iptables: No chain/target/match by that name.
 (exit status 1)).

解决方法:

  • docker服务启动时定义的自定义链DOCKER由于某种原因被清掉
  • 重启docker服务及可重新生成自定义链DOCKER
systemctl restart docker

或者重启服务器即可

以上是关于docker出现 Error response from daemon: driver failed programming external connectivity on endpoint pen的主要内容,如果未能解决你的问题,请参考以下文章

Docker Error response from daemon,Docker 换镜像

Docker获取镜像报错docker: Error response from daemon

运行容器出现docker: Error response from daemon: driver failed programming external connectivity on endpoin

启动docker容器时的Error response from daemon: devmapper: Error mounting: invalid argument. 错误解决

docker进入容器报:Error response from daemon Container is not running

Error response from daemon ... no space left on device docker启动容器服务报错