为了账号安全,请及时绑定邮箱和手机立即绑定

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)


正在回答

1 回答

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

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

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

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信