<p>I was trying to pull an image from docker.io, but I'm getting this error, recently I have changed my DNS I'm not sure is that the reason...I executed <code>minikube ssh</code> and I executed <code>docker pull</code> then I got this error </p>

<pre><code>Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:32905-&gt;10.0.2.3:53: i/o timeout
</code></pre>

<p>My Env -:
   Docker version -: 19.03.1
   minikube version -: 1.2.0
   ubuntu version -: 18.04</p>

<p>This is my resolv.conf.d --> head file content </p>

<p>nameserver 192.xxx.1x8.x</p>

<p>I was working on a side project and at some point needed to run a new docker image <code>docker pull nginx</code> that wasn't on my machine. When I tried to run it I got this error:</p>
<blockquote>
<p>Error response from daemon: Get <a href="https://registry-1.docker.io/v2/" rel="noreferrer">https://registry-1.docker.io/v2/</a>: dial tcp: lookup registry-1.docker.io on 10.0.0.1:53: read udp 10.0.0.30:55526-&gt;10.0.0.1:53: i/o timeout.</p>
</blockquote>
<p>I was surprised to see that, but I managed to find quick solution for this:</p>
<ul>
<li>Edit your DNS resolver config file: <code>sudo nano /etc/resolv.conf</code></li>
<li>Change or add nameserver <code>8.8.8.8</code> at the end of the file and you're good to go.</li>
</ul>
