“docker pull” certificate signed by unknown authority

后端 未结 8 1975
灰色年华
灰色年华 2020-12-29 04:01

I was trying to pull a docker image from a docker registry but hit the following issue:

$ docker pull //          


        
8条回答
  •  失恋的感觉
    2020-12-29 04:17

    For anyone who is using CentOS 7, this is what worked for me:

    • Obtain necessary certificate (e.g. from your company)
    • Copy the certificate to ca-trust location:
    sudo cp -p abc.crt /etc/pki/ca-trust/source
    
    • Update the certificate:
    sudo update-ca-trust extract
    
    • Reload daemon and restart docker:
    sudo systemctl daemon-reload
    sudo systemctl restart docker
    

提交回复
热议问题