How can I proxy docker hub private repo but not use the org namespace


I have docker images in docker hub that I want to proxy to my local nexus.
I’ve created a group repo in nexus with my hosted and proxy sitting behind it.

The issue I’m having is if I need to pull an image that isn’t in my hosted repo I need to add the org namespace in the docker pull.

Is there a way to just proxy one namespace in dockerhub and then I won’t need to add this.


docker pull <nexus-url>/<namespace>/<image-name>:<tag>

Required remove namespace

docker pull <nexus-url>/<image-name>:<tag>