“docker pull” certificate signed by unknown authority

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

    For the MacOS Docker Desktop user:

    Go to your repository's URL in a browser. You may have to accept all security prompts.

    Click (on Chrome) on the padlock on the address bar, then click on "Certificate".

    Click and hold down on the paper icon of the certificate and drag to a folder of your preference, or the desktop.

    Open your terminal (make sure to replace the last argument with the location of your file):

    security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain-db ~/<<>>/<<>>
    

    Restart your docker engine.

提交回复
热议问题