No such host when pulling docker image from registry or doing docker login

  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID: E209C6A4-9449-4323-AB40-EFAAB00AE4C2/20190806072257

Expected behavior

Pull images correctly without any error

Actual behavior

I get an error trying to pull images from registry. For example running docker run hello-world like Getting Started docs say returns the following:

PS C:\Users\Maicol> docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pulling fs layer                                                                                          D:\Program Files\Docker\Docker\Resources\bin\docker.exe: error pulling image configuration: Get https://registry-1.docker.io/v2/library/hello-world/blobs/sha256:fce289e99eb9bca977dae136fbe2a82b6b7d4c372474c9235adc1741675f587e: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: no such host.
See 'D:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.

Information

  • Windows Version: 10
  • Docker Desktop Version: 2.1

Steps to reproduce the behavior

  1. Follow docs steps (https://docs.docker.com/docker-for-windows/)

With this part of the error message

it looks like your workstation has 192.168.65.1 configured as it’s DNS server, and that server can’t/won’t find the actual IP address for the Docker Hub, which is also known as registry-1.docker.io.

Whomever maintains 192.168.65.1 can have a look at their server, and perhaps tell you more about why that might happen.

It seems that 192.168.65.1 is my router IP but to log in into it I have to type the address 192.168.1.1… What can I do?