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

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

    If you are behind proxy kindly use below commands

    sudo mkdir /etc/systemd/system/docker.service.d
    
    sudo cd /etc/systemd/system/docker.service.d
    
    sudo vi http-proxy.conf
    
    [Service]
    
    Environment=HTTP_PROXY=http://proxy-server-ip:port" "NO_PROXY=localhost,127.0.0.1"
    
    sudo systemctl daemon-reload 
    
    sudo systemctl show --property=Environment docker
    
    sudo systemctl restart docker
    

    Try this if you can fetch latest ubuntu

    sudo docker run -it ubuntu bash
    

    Unable to find image ubuntu:latest locally

    latest: Pulling from library/ubuntu b3e1c725a85f: Pull complete

    4daad8bdde31: Pull complete

    63fe8c0068a8: Pull complete

    4a70713c436f: Pull complete

    bd842a2105a8: Pull complete

    Digest:

    sha256:7a64bc9c8843b0a8c8b8a7e4715b7615e4e1b0d8ca3c7e7a76ec8250899c397a

    Status: Downloaded newer image for ubuntu:latest

    It worked for me finally :)

提交回复
热议问题