启动 docker 容器报错 (iptables failed: iptables --wait -t filter -A DOCKER ! -i docker0 -o docker0
前言
- 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相关推荐
- 启动docker容器报错 driver failed programming external connectivity on endpoint
启动docker容器报错 driver failed programming external connectivity on endpoint
- Linux中启动Docker容器报错:Error response from daemon: driver failed programming external connectivity
在启动Docker的容器时,会出现报错:Error response from daemon: driver failed programming external connectivity on e ...
- 使用命令“docker exec -it zerotier /bin/bash”进入docker容器报错
当我们从docker镜像仓库拉取了镜像并创建了容器运行,然后我们想进入运行中的docker容器,报错:container_linux.go:346: starting container proces ...
- 解决mac修改docker容器报错[screen is terminating]
在mac中运行: cd /Users/xq/Library/Containers/com.docker.docker/Data/vms/0 screen tty 此时出现:[screen is ter ...
- 启动boot项目报错:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
这是由于项目中缺少数据源导致的,如果你项目用不到数据源,在启动类注解上添加排除数据源注解即可:@SpringBootApplication(exclude = DataSourceAutoConfig ...
- jenkins shell 权限_Jenkins在shell脚本运行docker权限报错解决
报错环境 系统信息 Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial doc ...
- 启动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 ...
- 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 ...
- 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 ...
最新文章
- 设计模式-结构性模式
- 淘宝 oracle mysql_Oracle 与 MySQL 的区别-阿里云开发者社区
- PHP连接MySQL报错:Fatal error: Call to undefined function mysql_connect()之解决方法
- 抓住尾部的StackOverFlowError
- MyBatis 多表联合查询及优化
- L-BFGS算法/Broyden族/BFGS算法/阻尼牛顿法的Python实现代码
- 报错,nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException??
- 绘制多个折线图_精品图表 | Excel绘制面板折线图
- 对软件测试“核心价值”的思考
- Java数组3(2015-8-27)
- 【渝粤教育】国家开放大学2018年春季 0680-22T会计基础知识 参考试题
- 编译OpenWRT LEDE 固件的一些说明
- 大陆港澳台身份证正则验证
- cause: duplicate entry: meta-inf/maven pom.xml
- 完美解决IIS 服务器无法加载应用程序 '/LM/W3SVC/1/ROOT'。错误是 '没有注册类别
- Python3简单爬虫之下载相关类型音乐(喜马拉雅网站)!
- 梯度算法之梯度上升和梯度下降
- C语言 用字符串打印ASCII码值
- 【Python】如何查看安装的python的版本号
- 教你如何使用云服务器搭建我的世界Minecraft服务器(超级简单-10分钟完成)