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

前端 未结 19 1516
执念已碎
执念已碎 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:21

    On Windows 7 and if you believe you are behind proxy

    1. Logon to default machine

      $ docker-machine ssh default
      
    2. Update profile to update proxy settings

      docker@default:~$ sudo vi /var/lib/boot2docker/profile
      
    3. Append from the below as appropriate

      # replace with your office's proxy environment
      export"HTTP_PROXY=http://PROXY:PORT"
      export"HTTPS_PROXY=http://PROXY:PORT"
      
      # you can add more no_proxy with your environment.
      export"NO_PROXY=192.168.99.*,*.local,169.254/16,*.example.com,192.168.59.*"
      
    4. Exit

      docker@default:~$ exit
      
    5. Restart docker machine

      docker-machine restart default
      
    6. Update environment settings

      eval $(docker-machine env default)
      

    Above steps are slightly tweaked but as given in troubleshooting guide: https://docs.docker.com/toolbox/faqs/troubleshoot/#/update-varlibboot2dockerprofile-on-the-docker-machine

提交回复
热议问题