Search code examples
dockerdocker-machinedocker-registry

How to set a default registry to pull from in docker machine?


I have docker machine and by default it pulls my images from docker hub. Now we have our own repo which can serve as a remote proxy to docker hub. We can pull with docker pull server/repo/image.

Now I want that docker pull image resolves to our registry instead of docker hub. How can I achieve this in docker machine?


Solution

  • Changing the default docker registry is not possible. You can only configure a private registry to act as a mirror for the dockerhub registry as documented in Registry as a pull through cache.

    Check moby-33069 issue which has requested this feature.