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
The reason is probably that docker supports the https protocol by default, and the private library is the http protocol.
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