Home  >  Article  >  Operation and Maintenance  >  How to solve the problem of docker container network failure

How to solve the problem of docker container network failure

WJ
WJOriginal
2020-06-08 17:03:117461browse

How to solve the problem of docker container network failure

#How to solve the problem of docker container network failure?

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)

First stop the docker container running on the host, and then execute the following command

Execute on the host:

pkill docker
iptables -t nat -F
ifconfig docker0 down
systemctl restart docker.service

Restart the docker service

The problem will be solved. .

Related recommendations: docker tutorial

The above is the detailed content of How to solve the problem of docker container network failure. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn