How do I access multiple Artifactory Docker repositories from a single URL?

It is possible to configure a reverse proxy in such a way that an image can be tagged with the repository name and the reverse proxy can route such requests to the appropriate Artifactory Docker repository. 

 

The workflow would then look like this:

 

docker tag <image> <artifactory-reverse-proxy-url>/<repo-name>/<optional-namespace>/<image-name>

docker push <artifactory-reverse-proxy-url>/<repo-name>/<optional-namespace>/<image-name>

 

This would result in a new image created in the Artifactory repository <repo-name> with the path <optional-namespace>/<image-name>.

 

Here is a more concrete example:

 

docker tag busybox example.com/dockerv2/busybox

docker push example.com/dockerv2/busybox