Docker for Windows unable to pull images — no connection?
I've installed Docker for Windows on my Windows 10 machine, which uses Hyper-V.
Upon opening up a window (either Powershell or regular old command will do) and typing docker run hello-world
, I get the following response.
Unable to find image 'hello-world:latest' locally
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
Or, most recently:
Unable to find image 'hello-world:latest' locally
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: 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.2:44376->192.168.65.1:53: i/o timeout.
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
As stated in my related questions, Docker for Windows comes with its own apparently unalterable network adapter, DockerNAT
. I suppose I need to have that connect to the outside world, but I'm at a loss how to do so.
I've found advice to change to a fixed DNS, which I've already done (8.8.8.8
, to be precise). There are no proxies to set.
Solution 1:
had the similar issue.
Solution: Right Klick Docker Icon and go to Docker Settings then Network Tab Change DNS from Automatic to Fixed and Check your Proxy Settings.
Solution 2:
The current version of docker community edition (3.1.0) has a different interface. This answer is for Windows 10 Pro 20H2.
- After opening the docker interface from the tray application.
- Go to the "settings" cog icon. Third one from the top right.
- Open up the "Resources" to show the Proxies/Network/WSL integration
- Click on the "Network" on the left-hand-side and
- Lastly click to enable Manual DNS configuration.
DNS value needs to be specified
Restart if necessary.