Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to ping docker container from host #6

Open
alexgkt opened this issue Feb 9, 2015 · 1 comment
Open

Unable to ping docker container from host #6

alexgkt opened this issue Feb 9, 2015 · 1 comment

Comments

@alexgkt
Copy link

alexgkt commented Feb 9, 2015

Hi there,

I've setup docker_spy as per instructions stated on readme and have no issue with containers recognizing one another through either the defined hostname or container name.

Is there any additional steps needed other than just adding the docker0 ip as nameserver on /etc/resolv.conf?

I noticed pinging the containers from one another will produce an entry in docker logs either stating forwarding to external recursor or internal record found but trying to ping the container hostname from the host doesn't seems to produce any entries in the logs.

@JurrianFahner
Copy link

If you want to ping from the host to the container, you need to add the nameserver of Docker to your nameserver configuration. Under ubuntu you create /etc/resolvconf/resolv.conf.d/tail.
In this file you put the following: nameserver 172.17.42.1
After running "sudo resolvconf -u" you should be able to ping from host to container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants