Lookup index.docker.io: no answer from server

TL;DR: Try restarting your docker virtual machine.

I recently encountered this issue when doing a docker push :

I had just switched from my home to my work networks, and noticed that the IP address that it mentioned was that of my home router, so for some reason, docker had cached that DNS server address.

Restarting the docker virtual machine fixed the issue. If you’re on a Mac, you can just stop the virtual machine and run boot2docker up.

Leave a Reply

Your email address will not be published. Required fields are marked *