docker容器iptables failed: iptables --wait -t nat -A DOCKER&n
2018-03-30 18:22
405 查看
今天tomcat的docker容器挂了,只要是带命令-p映射端口就起不来并且报错:Error response from daemon: Cannot start container eb9d501f56bc142d9bf75ddfc7ad88383b7388ca6a5959309af2165f1fff6292: iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8081 -j DNAT --to-destination 172.17.0.164:8080 ! -i docker0: iptables: No chain/target/match by that name. (exit status 1)
网上查找发现,可能是网络问题造成首先先验证docker容器内部网络是否能ping通宿主机如果能ping通,即可通过重建docker0网络恢复先停掉宿主机上运行的docker容器,然后执行以下命令在宿主机执行:pkill docker
iptables -t nat -F
ifconfig docker0 down
brctl delbr docker0
docker -d
systmctl restart docker重启docker服务
问题即可解决。。
网上查找发现,可能是网络问题造成首先先验证docker容器内部网络是否能ping通宿主机如果能ping通,即可通过重建docker0网络恢复先停掉宿主机上运行的docker容器,然后执行以下命令在宿主机执行:pkill docker
iptables -t nat -F
ifconfig docker0 down
brctl delbr docker0
docker -d
systmctl restart docker重启docker服务
问题即可解决。。
相关文章推荐
- Cannot start container web: iptables failed: iptables -t nat -A DOCKER -p tcp -d 0/0 --dport 32797
- Docker iptables failed: iptables -t nat -A DOCKER -p tcp
- Cannot start container web: iptables failed: iptables -t nat -A DOCKER -p tcp -d 0/0 --dport 32797
- Cannot start container web: iptables failed: iptables -t nat -A DOCKER -p tcp -d 0/0 --dport 32797
- Docker NAT iptables实现 及网络配置 (网络二)
- Docker & Dubbo:Dubbo提供者部署到Docker容器
- centos7 && centos6.5部KVM使用NAT联网并为虚拟机配置firewalld && iptables防火墙端口转发
- (OK) Fedora 23——CORE——docker——(4)——> iptables_core.sh
- iptables和firewall-cmd实现nat转发配置
- Linux上MySQL更新wait_timeout & interactive_timeout
- 主机安全(3)iptables的nat应用
- iptables防火墙与NAT服务
- iptables之NAT
- (十五)洞悉linux下的Netfilter&iptables:开发自己的hook函数【实战】(上)
- docker 源码分析 五(基于1.8.2版本),Docker容器的创建
- centos 6.3 docker 安装
- PythonStock(18):使用docker 安装 quantlib 源码安装&lib库安装
- iptables nat
- Interview Q&A - Java中sleep()和wait()有什么区别
- linux-iptables设置NAT