Reinier Hernández
Reinier Hernández

Reputation: 428

Unable to find image 'hello-world:latest' locally Docker

This is the first time I am trying to set up docker (version 17.09.0-ce). I have followed the all instructions from official site and this run ok on my machine (Windows 10 x64). When I type docker --version on console returns Docker version 17.09.0-ce, build afdb6d4. But i am trying execute docker run -t hello-world and this is the answer:

Unable to find image 'hello-world:latest' locally
docker: 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 'docker run --help'.

my internet is from proxy, but I make a VPN and everything work perfectly except docker, I even install python packages using pip. what could be wrong?

Upvotes: 13

Views: 20692

Answers (4)

zheyuanWang
zheyuanWang

Reputation: 1374

For users in China, I recommand this answer.

You need to add a valid address to pull the image "hello-world".

Upvotes: 0

Mustafa Albasha
Mustafa Albasha

Reputation: 29

This should resolve the issues for most.

For windows behind a proxy, you can do the followings to resolve this issue go to your proxy setting under resources and enter your proxy credentials username:password@yourdomain:port.

Important make sure to account for special character Unicode conversion for example, if you have # in your password then you replace it with: %23 you can covert special characters via site.

Upvotes: 1

Reinier Hernández
Reinier Hernández

Reputation: 428

I resolve this modifing daemon.json and put my proxy there. In case of Windows on Docker Desktop, go to Resources, Proxies:

docker desktop proxy config

Upvotes: 0

Govind Kalyankar
Govind Kalyankar

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)

enter image description here

Upvotes: 3

Related Questions