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
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?.