Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Token on same Registry #2060

Open
ermanno00 opened this issue Dec 3, 2024 · 1 comment
Open

Multiple Token on same Registry #2060

ermanno00 opened this issue Dec 3, 2024 · 1 comment

Comments

@ermanno00
Copy link

Is your feature request related to a problem? Please describe.

I have two projects on my gitlab that are in different groups so I generated two deploy tokens on which each one has the permission to read his own registry.

My config.json file is:

{
"auths": {
"registry.gitlab.com/project1": {
"auth": ""
},
"registry.gitlab.com/project2": {
"auth": ""
}
}
}

I have this file under ~/.docker/ and it is working. In fact, when i try to pull a docker compose the image that is on the first repo uses the "token1" while the image that is on the second repo uses the "token2".

If i share or duplicate the same file in watchtower one of the two images won't be pulled because seems that watchtower uses only the first part of the registry (before the first "/").

How can I use multiple token for the same registry?

Describe the solution you'd like

Can you use a different approach to check the registries?

Describe alternatives you've considered

I haven't used alternatives

Additional context

No response

Copy link

github-actions bot commented Dec 3, 2024

Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant