Reputation: 103
I'm a newbie in docker. I try to run
$ docker run hello-world
And I got this error:
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
Pulling repository docker.io/library/hello-world
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/hello-world/images. You may want to check your internet connection or if you are behind a proxy..
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
Also I allowed all points for this app in firewall screenshot
Upvotes: 1
Views: 3098
Reputation: 1
After installing the docker for windows, I got the error as below.
PS C:\Users<Username>> docker run hello-world Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled (Client.Timeout exceeded while awaiting headers).
So made changes in docker > Settings > Resources > Network > updated docker subnet to 10.0.75.0/24.
It worked like charm after.
Upvotes: 0
Reputation: 624
I resolved this issue on windows 10 by resetting the DNS server to use the Google DNS fixed address: 8.8.8.8 (docker documentation)
Upvotes: 0
Reputation: 378
I ran into that issue while moving from mac to windows. I would recommend to check the following things:
I hope this gave you a notch into the right direction.
Upvotes: 1