# Access Private Docker Image Repository - Not Self-Hosted

**URL:** https://community.traefik.io/t/access-private-docker-image-repository-not-self-hosted/12205
**Category:** Traefik v2
**Tags:** docker, docker-swarm
**Created:** [October 22, 2021, 10:13am UTC](https://community.traefik.io/t/access-private-docker-image-repository-not-self-hosted/12205 "2021-10-22T10:13:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MarcoGriep88](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/marcogriep88/32/4418_2.png) [@MarcoGriep88](https://community.traefik.io/u/MarcoGriep88)
#### Post date: [October 22, 2021, 10:13am UTC](https://community.traefik.io/t/access-private-docker-image-repository-not-self-hosted/12205/1 "2021-10-22T10:13:47Z")

</div>

Hi, first of all. I'm new to Traefik so please excluse if this is a stupid question.  
Of cause i first searched the web for information but did not find any relevant article to my question.

Following Situation:  
I am using Traefik 2.3 in Docker Swarm Mode. I want to access docker images that are hosted on GitLab (Private Repository). I can pull and rum them AFTER AUTHORIZATION via commandline - No issue.

Traefik does not know my credentials for accessing my private docker image repository. I only found articles how to publish an private docker repository behind traefik, but i dont not want to do this. I just want to use my existing respository in GitLab.

How can i tell Traefik's Docker Deamon that it has to login with "credentials abc" on Service X?

Thanks in advance

Marco Griep

---

<div class="post-metadata">

### Author: ![MarcoGriep88](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/marcogriep88/32/4418_2.png) [@MarcoGriep88](https://community.traefik.io/u/MarcoGriep88)
#### Post date: [October 22, 2021, 11:14am UTC](https://community.traefik.io/t/access-private-docker-image-repository-not-self-hosted/12205/2 "2021-10-22T11:14:09Z")

</div>

I found it. i just have to pass "--with-registry-auth" next to the docker stack command.

---

<div class="post-metadata">

### Author: ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)
#### Post date: [October 22, 2021, 1:20pm UTC](https://community.traefik.io/t/access-private-docker-image-repository-not-self-hosted/12205/3 "2021-10-22T13:20:48Z")

</div>

> [@MarcoGriep88](#):
>
> Traefik does not know my credentials for accessing my private docker image repository.

Not a traefik related issue. This is 100% docker.
