[FZH] Fedora Docker Container Network problems
Nicol TAO
nicol_tao at 126.com
Mon Oct 12 03:02:06 UTC 2015
Hello!
I want to ask a question about Docker.
I installed VMware Workstation 10 in Windows7 as host, and the guest OS is fedora 22 with latest updates.
I installed the latest docker, and running
sudo docker run -i -t centos:latest ping 8.8.4.4
But I found all the containers can not access wider Internet, I have tried fedora's docker, and official
docker-engine, they all do not work.
I am using default docker0 bridge, and my network configuration is:
Host OS(192.168.200.1) <--> VMware NAT(192.168.200.2) <--> Fedora Guest(192.168.200.137) <--> docker0(172.17.42.1) <--> container(172.17.0.4)
I can run ping from container with 172.17.42.1 AND 192.168.200.137 OK, but I can not access 192.168.200.2 and later networks.
I also installed other OS(debian) with the same VMWare configuration, the network works fine. So I figure whether it is fedora's problem.
Does the Vmware+fedora22 can fully support docker network and functions ?
[root在localhost ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 0 0 0 eth0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
192.168.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
More information about the Chinese
mailing list