Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io...i/o timeout Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io...i/o timeout kubernetes kubernetes

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io...i/o timeout


I was working on a side project and at some point needed to run a new docker image docker pull nginx that wasn't on my machine. When I tried to run it I got this error:

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.0.1:53: read udp 10.0.0.30:55526->10.0.0.1:53: i/o timeout.

I was surprised to see that, but I managed to find quick solution for this:

  • Edit your DNS resolver config file: sudo nano /etc/resolv.conf
  • Change or add nameserver 8.8.8.8 at the end of the file and you're good to go.


I was able to fix this by changing the DNS to 8.8.8.8


This is normally indicating that, you have error with your internet connection. Whenever i have above issue, i just disconnect from my network and reconnect, and most of the time it works.