前言

  • centos7
  • phpstudy 1.2 linux 版

启动 docker 容器报错

shell> docker start nexus3
Error response from daemon: driver failed programming external connectivity on endpoint nexus3 (a37100872332dd85e4ab6688b97bea3c4fb420c7d4740225a69d1cec700fe757):  (iptables failed: iptables --wait -t filter -A DOCKER ! -i docker0 -o docker0 -p tcp -d 172.17.0.3 --dport 8081 -j ACCEPT: iptables: No chain/target/match by that name.(exit status 1))
Error: failed to start containers: nexus3

报错原因

网上查,是网络原因。

结合自身来看,我在 phpstudy 开启了服务器防火墙后,安装的docker。今天在 phpstudy 中禁用了服务器防火墙。禁用服务器防火墙后,才发生的此问题。
phpstudy 带的服务器防火墙是iptable(centos7带的防火墙是firewalld,不要混了),错误提示的也是iptable问题。这就对上了。

解决办法1:重建docker0网络

重建docker0网络,让docker0网络适应无防火墙的情况。

在宿主机执行下面的命令:

shell>  pkill docker
shell>  iptables -t nat -F
shell>  ifconfig docker0 down
shell>  brctl delbr docker0
shell>  docker -d
shell>  systemctl restart docker 重启docker服务

解决办法2:恢复防火墙状态

在 phpstudy 中启用服务器防火墙,什么都不需要动,就好了。

另:如果在未启用防火墙状态下安装的docker,且安装docker后启用防火墙的,也会遇到这个问题。

参考

https://blog.csdn.net/blueyan163/article/details/68928065

启动 docker 容器报错 (iptables failed: iptables --wait -t filter -A DOCKER ! -i docker0 -o docker0相关推荐

  1. 启动docker容器报错 driver failed programming external connectivity on endpoint

    启动docker容器报错 driver failed programming external connectivity on endpoint

  2. Linux中启动Docker容器报错:Error response from daemon: driver failed programming external connectivity

    在启动Docker的容器时,会出现报错:Error response from daemon: driver failed programming external connectivity on e ...

  3. 使用命令“docker exec -it zerotier /bin/bash”进入docker容器报错

    当我们从docker镜像仓库拉取了镜像并创建了容器运行,然后我们想进入运行中的docker容器,报错:container_linux.go:346: starting container proces ...

  4. 解决mac修改docker容器报错[screen is terminating]

    在mac中运行: cd /Users/xq/Library/Containers/com.docker.docker/Data/vms/0 screen tty 此时出现:[screen is ter ...

  5. 启动boot项目报错:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd

    这是由于项目中缺少数据源导致的,如果你项目用不到数据源,在启动类注解上添加排除数据源注解即可:@SpringBootApplication(exclude = DataSourceAutoConfig ...

  6. jenkins shell 权限_Jenkins在shell脚本运行docker权限报错解决

    报错环境 系统信息 Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial doc ...

  7. 启动docker容器时报错:iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 5000 -j DNAT -

    启动docker容器时报错: iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 5000 -j DNAT ...

  8. docker启动报错  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9876 -j DNAT --

    docker启动报错 :  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9876 -j DNAT ...

  9. dockerq启动报错(iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9876 -j DNAT --t

    docker启动报错 (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9876 -j DNAT --t ...

最新文章

  1. 设计模式-结构性模式
  2. 淘宝 oracle mysql_Oracle 与 MySQL 的区别-阿里云开发者社区
  3. PHP连接MySQL报错:Fatal error: Call to undefined function mysql_connect()之解决方法
  4. 抓住尾部的StackOverFlowError
  5. MyBatis 多表联合查询及优化
  6. L-BFGS算法/Broyden族/BFGS算法/阻尼牛顿法的Python实现代码
  7. 报错,nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException??
  8. 绘制多个折线图_精品图表 | Excel绘制面板折线图
  9. 对软件测试“核心价值”的思考
  10. Java数组3(2015-8-27)
  11. 【渝粤教育】国家开放大学2018年春季 0680-22T会计基础知识 参考试题
  12. 编译OpenWRT LEDE 固件的一些说明
  13. 大陆港澳台身份证正则验证
  14. cause: duplicate entry: meta-inf/maven pom.xml
  15. 完美解决IIS 服务器无法加载应用程序 '/LM/W3SVC/1/ROOT'。错误是 '没有注册类别
  16. Python3简单爬虫之下载相关类型音乐(喜马拉雅网站)!
  17. 梯度算法之梯度上升和梯度下降
  18. C语言 用字符串打印ASCII码值
  19. 【Python】如何查看安装的python的版本号
  20. 教你如何使用云服务器搭建我的世界Minecraft服务器(超级简单-10分钟完成)

热门文章

  1. 记录一个在线压缩和还原压缩js代码的工具
  2. android studio下NDK开发
  3. ActiveMovie属性说明,使用资料。
  4. ajax中加上AntiForgeryToken防止CSRF攻击
  5. MSMQ消息队列安装
  6. oracle易忘函数用法(1)
  7. “我是技术总监,你干嘛总问我技术细节?”| 程序员有话说
  8. sublime xdebug调试php
  9. media recovery oracle,media recovery
  10. 1000 驱动_华为海思自研OLED驱动芯片已流片:最高28nm、可完全去美化