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

Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

执行docker build -t hello_docker . 制作镜像的时候,报如下错误:

$ docker build -t hello_docker .

Sending build context to Docker daemon  2.048kB

Step 1/3 : FROM alpine:latest

再往下报错:

Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)


提问者:积木_0004 2018-05-27 20:59

个回答

  • 慕妹0971310
    2018-05-28 00:05:04

    网络超时了 最好配置国内的镜像