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

后端 未结 11 1150
攒了一身酷
攒了一身酷 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:34

    This may be the old one, but fixed available here

    https://success.docker.com/article/i-get-x509-certificate-signed-by-unknown-authority-error-when-i-try-to-login-to-my-dtr-with-default-certificates

    run following commands on each server

    export DOMAIN_NAME=bootstrap.node1.local
    export TCP_PORT=5000
    openssl s_client -connect $DOMAIN_NAME:$TCP_PORT -showcerts /dev/null | openssl x509 -outform PEM | tee /etc/pki/ca-trust/source/anchors/$DOMAIN_NAME.crt
    update-ca-trust
    /bin/systemctl restart docker.service
    

提交回复
热议问题