in a container, when initially created from a image, I cannot successfully Ping google.com or baidu.com or those kind of outside Internet. According to the offical docs of docker, the newly created containers could get access to the Internet by default. BUT, i don’t know why my containers couldn’t Ping outside internet.
Details of attempts:
(1) I tried Pinging the other containers' ip address, it worked.
(2) I tried Pinging docker0's ip address, it worked.
(3) I tried Pinging the host computer's ip address, it worked.
(4) i guess the problem is resulted from **iptables**, the firewall in Ubuntu,
after executing “#iptables -t nat --iist”:
Anybody knows the solution?