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

来源:3-1 dockerfile介绍

积木_0004

2018-05-27 20:59

执行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)


写回答 关注

1回答

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

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

Docker入门

再不学点Docker你就out啦!

97053 学习 · 242 问题

查看课程

相似问题