phenomenon
- Internal / external IP network domain and can ping
- Unable to access the container within the host where the network and external network of Web services (404)
- View header information returned by curl feeling is that all Web requests are relayed to a fixed server Nginx
- All containers (including newly created) all the above problems
analysis
- By
docker run --net host
the above-mentioned problem does not exist to create container docker run
Defaultbridge
bridged networking, the initial judgment wasbridge
set problem- By custom bridge also not solve the problem
- The final suspect is bridging the network card on the host
docker0
issues
solve
By rebuilding docker0
solve network problems
$ sudo service docker stop $ sudo pkill docker $ sudo iptables -t nat -F $ sudo ifconfig docker0 down $ sudo brctl delbr docker0 $ sudo service docker start
Temporarily solved the problem.