-
Notifications
You must be signed in to change notification settings - Fork 339
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
Can't use ECR helper alongside GHCR login #908
Comments
Hi @siferati, this may be a issue with how docker handles Have you tried using credHelpers instead?
|
@swagatbora90 Thanks, that solved the issue! So is the README outdated and this section no longer applies to recent docker versions? amazon-ecr-credential-helper/README.md Lines 223 to 237 in 69e8c24
|
Yes, I think the README needs to be updated, since I was not able to make this work as well. I also found this old issue where a lot of folks reported issues with using |
Documentation has been updated to reflect the above behavior. |
Description
The README states it's possible to use ECR Docker Credential Helper alongside existing docker login authentication tokens.
But this doesn't seem to work for GitHub Container Registry?
How can I simultaneously login to GHCR and ECR??
ECR + GHCR
docker pull <ghcr>
fails (Error response from daemon: Head "...": unauthorized
)docker pull <ecr>
succeedsI can pull images separately from both GHCR and ECR, so it's not an issue with my credentials.
Only when trying to login to both registries as above do I fail to pull from GHCR.
Only GHCR
docker pull <ghcr>
succeedsdocker pull <ecr>
fails (expected since no ecr login)Only ECR
docker pull <ghcr>
fails (expected since no ghcr login)docker pull <ecr>
succeedsThe text was updated successfully, but these errors were encountered: