How to solve the problem of docker container network failure

WJ
Release: 2020-06-08 17:03:11
Original
7386 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!