# Distinguish between multiple docker registries

**URL:** <https://community.sonatype.com/t/distinguish-between-multiple-docker-registries/8206>\
**Category:** Best Practices\
**Tags:** docker\
**Created:** [February 8, 2022, 6:47pm UTC](https://community.sonatype.com/t/distinguish-between-multiple-docker-registries/8206 "2022-02-08T18:47:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![raphael.scheible](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/raphael.scheible/32/2182_2.png) [@raphael.scheible](https://community.sonatype.com/u/raphael.scheible)\
**Post date:** [February 8, 2022, 6:47pm UTC](https://community.sonatype.com/t/distinguish-between-multiple-docker-registries/8206/1 "2022-02-08T18:47:01Z")

</div>

Hi community,

I’ve got a question for which I didn’t find any answer (maybe I searched wrong):  
We’ve got the use case, that we use Nexus for multiple docker registries, e.g. docker hub and github’s registry. As there might be the case, that a package is obtainable from both registries, we’d like to be able to manually distinguish the registries and select them via URL in the `docker pull` command, e.g.:

```auto
docker pull nexus.server/github/somerepo/somepackage:latest
docker pull nexus.server/dockerhub/somepackage:latest

```

Unfortunately, I did not succeed in setting that up. Is this usecase even possible? I think that this usecase will be more relevant, as more and more registries arise for various packages (gitlab, github, docker, redhat, etc). These registry often are even generic and can host python and npm stuff, which makes this use-case also interesting for us to roll out on these packages, too.

The only solution, which I can see right now would be to setup multiple nexus which doesn’t really make sense to me. I hope someone can help me setting this up in one nexus installation.

Kind regards,  
Raphael

---

_[View the full topic](https://community.sonatype.com/t/distinguish-between-multiple-docker-registries/8206)._
