Configure dockerd to use a regsitry mirror for a private registry

Hello,
I know I can put this into the /etc/docker/daemon.json file

{"registry-mirrors": ["https://myhost.mydomain.com:5000"]}

so that docker uses my private mirror when pulling from dockerhub. But what if I have a mirror for a private registry or a different registry than dockerhub, for example https://mcr.microsoft.com/
? How can I configure docker to use that mirror when trying to pull images from that private source registry?

1 Like

Unfortunately and infuriatingly, it is not possible.
This is a most desired feature, by me, and by many others.
However, Docker, on purpose, does not implement this feature.
See the “Gotcha” in the documentation and the issue Enable engine to mirror private registry · Issue #18818 · moby/moby · GitHub.