crosbymichael / skydock

Service discovery via DNS for docker
MIT License
1.06k stars 88 forks source link

Docker Containers cannot access internet and each other with skydock #84

Open danieltan opened 9 years ago

danieltan commented 9 years ago

Hi Michael,

I'm trying to use Skydock to allow my containers to know which container is communicating to them by hostname. Specifically, I want to set up datadog monitoring on my containers, and want to allow access to status services on the container via a host name (rather than an IP address for instance).

I've followed your install instructions, but once I start up my containers, I notice that they do not have access to the Internet, even though skydns's -namesever has been set to 8.8.8.8:53.

I also cant seem to ping my other containers from within a container using your URL scheme SkyDNS logs show that it picks up that the containers have been run

My environment is Ubuntu 14.04 and Docker version is 1.4.1

Any thoughts?

Thanks, Dan

simonqbs commented 9 years ago

I had the same problem and for me it was fw related. Since you are running ubuntu you probably have ufw installed so try running ufw allow from 172.17.0.0/16 to any.