“docker pull” certificate signed by unknown authority

后端 未结 8 2002
灰色年华
灰色年华 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:28

    You may need to restart the docker service to get it to detect the change in OS certificates.

    Docker does have an additional location you can use to trust individual registry server CA. You can place the CA cert inside /etc/docker/certs.d//ca.crt. Include the port number if you specify that in the image tag, e.g in Linux.

    /etc/docker/certs.d/my-registry.example.com:5000/ca.crt
    

    or in Windows 10:

    C:\ProgramData\docker\certs.d\ca.crt
    

提交回复
热议问题