I installed Docker-Toolbox just now while following their webpage
I started with Docker QuickStart Terminal
and see following
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com
bash-3.2$
But when I try to perform docker pull hello-world
, this is what I see
bash-3.2$ docker run hello-world
Unable to find image 'hello-world:latest' locally
Pulling repository docker.io/library/hello-world
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.
bash-3.2$
What's wrong?
I had the same problem this morning and the following fixed it for me:
It appears that this is due to the Docker virtual machine getting itself into a strange state. There is an open github issue here
If you are behind proxy it is not enough to set
HTTP_PROXY
andHTTPS_PROXY
env. You should set it while machine creation.Paramer for this is
--engine-env
:The simpler solution is to add the following entry in /etc/default/docker file
export http_proxy="http://HOST:PORT/"
and restart the docker service
service docker restart
I had this same problem with boot2docker and fixed it by restarting it with:
I ran into this exact same problem yesterday and none of the "popular" answers (like fixing DNS to 8.8.8.8) worked for me. I eventually happened across this link, and that did the trick ... https://github.com/docker/for-win/issues/16
Between Docker for Windows, Windows 10 and Hyper-V, there seems to be a problem during the virtual network adapter creation process. Specifically, you might end up with two "vEthernet (DockerNAT)" network adapters. Check this with
Get-NetAdapter "vEthernet (DockerNAT)"
(in an elevated PowerShell console). If the result shows more than one adapter, you can disable and rename it with:Then open up Device Manager and delete the disabled adapter (for some reason you can do this from here, but not from the Network and Sharing Center adapters view).
On Windows 7 and if you believe you are behind proxy
Logon to default machine
Update profile to update proxy settings
Append from the below as appropriate
Exit
Restart docker machine
Update environment settings
Above steps are slightly tweaked but as given in troubleshooting guide: https://docs.docker.com/toolbox/faqs/troubleshoot/#/update-varlibboot2dockerprofile-on-the-docker-machine