Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 666
Reinier Hernández Avatar asked Nov 05 '17 22:11

Reinier Hernández


Video Answer


2 Answers

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

like image 90
Govind Kalyankar Avatar answered Sep 18 '22 21:09

Govind Kalyankar


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.

like image 22
Mustafa Albasha Avatar answered Sep 19 '22 21:09

Mustafa Albasha