Friday, August 31, 2018

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

For this issue all you needed was an attempt to run a docker container in windows.

docker run hello-world

And you get something like below:
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: 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:54120->192.168.65.1:53: i/o timeout.
See 'docker run --help'.

Unfortunately "See ''docker run --help" doesn't help much.

If you notice that in your C:/ProgramData/Docker/service.txt it says something like below

[09:02:50.383][VpnKit         ][Warning] vpnkit.exe: DNS servers 192.168.43.1:53 are all marked offline
[09:02:50.383][VpnKit         ][Warning] vpnkit.exe: fbb9 Query:0 na:c:r:rn 0 > lookup failed: no servers configured


So it basically means you need to correct your DNS address as the current one is found offline by docker. Just use fixed DNS entries.

In case the link doesn't work, set your IPv4 properties as below.


No comments:

Post a Comment