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

Viewed 18077

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?

4 Answers

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.

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

For users in China, I recommand this answer.

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

Related