Network timed out while trying to connect to https://index.docker.io

前端 未结 19 1480
执念已碎
执念已碎 2021-01-29 17:27

I installed Docker-Toolbox just now while following their webpage

I started with Docker QuickStart Terminal and see following

                      


        
相关标签:
19条回答
  • 2021-01-29 18:02

    I ran into this problem running Docker on my MAC(host) with Docker VM in VBOX 5.10. It is a networking issue. The simple fix is to add a bridged network to the VBOX image. You can use the included NAT config present with the VM, but you need to change the ssh port from 50375 to 2375.

    0 讨论(0)
  • 2021-01-29 18:02

    I had this same problem with boot2docker and fixed it by restarting it with:

    boot2docker restart
    
    0 讨论(0)
  • 2021-01-29 18:03

    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

    0 讨论(0)
  • 2021-01-29 18:06

    If you are behind proxy it is not enough to set HTTP_PROXY and HTTPS_PROXY env. You should set it while machine creation.

    Paramer for this is --engine-env:

    docker-machine create -d "virtualbox" --engine-env HTTP_PROXY=http://<PROXY>:<PORT> --engine-env HTTPS_PROXY=<PROXY>:<PORT> dev
    
    0 讨论(0)
  • 2021-01-29 18:08

    I installed Docker without the Toolbox on Windows 10, so the version that requires Hyper-V to be enabled.

    For Docker version 1.12 I had to go into the taskbar, right click the Docker Icon, select Settings -> Network and set the DNS Server to fixed, so that is uses Google's DNS server at 8.8.8.8.

    Once that setting was changed, it finally worked.

    0 讨论(0)
  • 2021-01-29 18:09

    I had the same problem this morning and the following fixed it for me:

    $ docker-machine restart default      # Restart the environment
    $ eval $(docker-machine env default)  # Refresh your environment settings
    

    It appears that this is due to the Docker virtual machine getting itself into a strange state. There is an open github issue here

    0 讨论(0)
提交回复
热议问题