简体   繁体   中英

docker private registry as default registry in local machine and server machine

I like to have my private docker registry as default one in my local and server machine.

When pulling images (ubuntu, httpd), it should check for my registry only

You could forbid on firewall connecting server to dockerhub. This way dockerd will be forced to use your registry only. But that would work only for configured mirror.

In fact, to use only a private registry instead dockerhub it's not possible out of the box. There are special modifications of dockerd that allows you to set it up - see this thread How to change the default docker registry from docker.io to my private registry? .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM