docker 容器网络不通解决方法?
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容器,然后执行以下命令
在宿主机执行:
pkill docker iptables -t nat -F ifconfig docker0 down systemctl restart docker.service
重启docker服务
问题即可解决。。