Docker pull connection refused

Hi,

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 docker.io/library/mongo
Error while pulling image: Get https://index.docker.io/v1/repositories/library/mongo/images: dial tcp: lookup index.docker.io on 127.0.0.54:53: read udp 127.0.0.54:53: connection refused

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

Hi,

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.

Regards