Error “Get https://registry-1.docker.io/v2/: net/http: request canceled” while building image

后端 未结 11 1120
攒了一身酷
攒了一身酷 2020-12-13 19:01

I am getting the below error while building an image

Step 1/10 : FROM ubuntu:14.04
Get https://registry-1.docker.io/v2/: net/http: request canceled while wai         


        
11条回答
  •  轮回少年
    2020-12-13 19:38

    I faced this issue on ubuntu when I am trying to build elasticsearch:

    And I got this error:

    ERROR: Get https://docker.elastic.co/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
    

    It was my network connection problem. I was using VPN. so I disconnect my VPN connection and it's working fine.

    for some reasons, it's trying to look up the domain it seems trying to search for the domain inside the local network after I disconnect the VPN everything worked fine.

提交回复
热议问题