title: Docker Windows timeout
body: <p>I am trying to configure an environment on Windows 10 using <code>docker</code> and <code>docker-compose</code>, but I am not being able to pull the images from the docker registry.</p>
  
  <p>Everytime I run <code>docker-compose up -d</code>, I get the error below:</p>
  
  <pre><code>Pulling queue (redis:)...
  ERROR: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: read udp 192.168.65.3:36785-&gt;192.168.65.1:53: i/o timeout
  </code></pre>
  
  <p>I've looked around online and some people recommended setting the DNS server to a fixed one: <code>8.8.8.8</code>. I did this, but I still have the problem.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>As per @kaki suggestion, I looked at my hosts file and I saw several entries that were regarding docker:</p>
  
  <pre><code>100.114.69.30 host.docker.internal
  100.114.69.30 gateway.docker.internal
   host.docker.internal
   gateway.docker.internal
   192.168.1.103 host.docker.internal
   192.168.1.103 gateway.docker.internal
  # Added by Docker Desktop
   192.168.0.11 host.docker.internal
   192.168.0.11 gateway.docker.internal
  # To allow the same kube context to work on the host and the container:
  127.0.0.1 kubernetes.docker.internal
  # End of section
  </code></pre>
  
  <p>I removed all of them but these:</p>
  
  <pre><code>100.114.69.30 host.docker.internal
  100.114.69.30 gateway.docker.internal
  127.0.0.1 kubernetes.docker.internal
  # End of section
  </code></pre>
  
  <p>and things started working.</p>