Docker pull on mac reports an error Error response from daemon: Get https://xx.xx.xx.xx/v2/: Service Unavailable

created at 10-26-2021 views: 1

error

Execute docker pull xx.xx.xx.xx/xx/xx, and the following error is reported when downloading the image of the private library:

Error response from daemon: Get https://xx.xx.xx.xx/v2/: Service Unavailable

reason

The reason is probably that docker supports the https protocol by default, and the private library is the http protocol.

solution

The mac desktop can be configured with the following code in Preferences->Docker Engine, xx.xx.xx.xx is the address of your own private library.

{
    "insecure-registries":[
        "xx.xx.xx.xx"
    ]
}

For centos system, modify /etc/docker/daemon.json and add the following code.

{
    "insecure-registries":[
        "xx.xx.xx.xx"
    ]
}

My config is here

mac docker config

Please log in to leave a comment.