当前位置:   article > 正文

Docker启动nginx报错driver failed programming external connectivity on endpoint nginx解决方案

driver failed programming external connectivity on endpoint nginx

@[TOC](Docker启动nginx报错Error response from daemon: driver failed programming external connectivity on endpoint nginx (6307a83f775bf316440e9b843841d808a84dded1b805b204484e41a73835f24a): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 80 -j DNAT --to-destination 172.17.0.6:80 ! -i docker0: iptables: No chain/target/match by that name.解决方案)

问题背景

在使用docker进行启动nginx的时候报错

[root@localhost conf.d]# docker start nginx 
Error response from daemon: driver failed programming external connectivity on endpoint nginx (6307a83f775bf316440e9b843841d808a84dded1b805b204484e41a73835f24a):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 80 -j DNAT --to-destination 172.17.0.6:80 ! -i docker0: iptables: No chain/target/match by that name.
  • 1
  • 2

解决方案

1 因为在启动docker的nginx之前,使用了关闭防火墙,导致链接出错了,可以重启一下docker重新建立链接

systemctl restart docker
  • 1

再启动nginx

docker start nginx
  • 1

总结

遇到两三次这个问题,蓝瘦




作为程序员第 204 篇文章,每次写一句歌词记录一下,看看人生有几首歌的时间,wahahaha …

Lyric: 把她忘记

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/604911
推荐阅读
相关标签
  

闽ICP备14008679号