Docker pull connection refused


I’m a bit new to docker and I recently had an issue with trying to pull mongo from docker hub. I’m using docker pull mongo:latest but I’m met with the following error:

Using default tag: latest
Pulling repository
Error while pulling image: Get dial tcp: lookup on read udp connection refused

What’s causing the issue here? I’ve tried reinstalling a new version of Docker, rebooting my computer, stopping all VM.


Looks like the OS in which you are running docker is not able to do proper DNS lookup. Are you using boot2docker? If yes, just restarting the boot2docker will do the trick. If you have installed docker on a separate linux vm other than boot2docker vm, make sure that name resolutions is working properly. Try to use Google DNS in /etc/resolv.conf.

From the error it looks like some misconfigured resolver.