docker 容器網(wǎng)絡(luò)不通解決方法?
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)
先停掉宿主機(jī)上運(yùn)行的docker容器,然后執(zhí)行以下命令
在宿主機(jī)執(zhí)行:
pkill docker iptables -t nat -F ifconfig docker0 down systemctl restart docker.service
重啟docker服務(wù)
問(wèn)題即可解決。。