问答详情
源自:3-1 dockerfile介绍

Get https://registry-1.docker.io/v2/library/alpine/manifests/latest: Get https://auth.docker.io

Get https://registry-1.docker.io/v2/library/alpine/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Falpine%3Apull&service=registry.docker.io: net/http: request canceled (Client.Timeout exceeded while awaiting headers) 报这个错?求大神指点

提问者:摆渡人5550 2018-12-21 21:55

个回答

  • 慕桂英517138
    2018-12-29 19:14:13

    站点连接问题

    解决方案:

    第一步:

    vim /etc/docker/daemon.json

    添加如下内容:

    {

       "registry-mirrors": ["http://hub-mirror.c.163.com"]

    }

    第二步:

    sudo systemctl daemon-reload

    第三步:
    sudo service docker restart