How to resolve Docker i/o timeout error on Windows?

How to resolve Docker i/o timeout error on Windows?

If you are also encountering an i/o timeout error like following then this post can help you resolve it.

Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: Get https://auth.docker.io/token?account={your account name here}&scope=repository%3Alibrary%2Fhello-world%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 192.168.65.1:53: read udp 192.168.65.3:58528->192.168.65.1:53: i/o timeout.
See ‘docker run –help’.

I also faced this error while running hello world container with Docker on my Windows machine.

Here dare the steps I took to resolve this issue.
Open Docker setting by doing right click on Docker icon in system tray.
Docker settings

In settings window go to Network tab and change the DNS server from Automatic to Fixed.

Docker network settings

Apply the changes. Docker service will restart and you should be able to pull the docker images without any issues now.