Replies: 1 comment
-
|
The green code snippet here: shows aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.awswhich also suggest that using something like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
if I go to https://eu-central-1.console.aws.amazon.com/ecr/repositories?region=eu-central-1 and click Public and select a image-repo and click "View push commands", then I can read
Look at the last string above: it is
public.ecr.aws/z3o4p8r4, i.e.public.ecr.aws/<registry-alias>I do not think that this is correct. (At least not for docker-credential-pass (as available in debian here)).
Because
Bad flow with
public.ecr.aws/z3o4p8r4~/.docker/config.json{ "auths": {}, "credsStore": "desktop", "credHelpers": { "public.ecr.aws/z3o4p8r4": "pass" } }Because if I do
followed by
docker logout public.ecr.aws/z3o4p8r4then I can still see
~/.docker/config.json{ "auths": { "public.ecr.aws": {} // this!!! it's not really logged out! }, "credsStore": "desktop", "credHelpers": { "public.ecr.aws/z3o4p8r4": "pass" } }Better is the following:
Good flow with
public.ecr.aws(notpublic.ecr.aws/z3o4p8r4)~/.docker/config.json{ "auths": {}, "credsStore": "desktop", "credHelpers": { "public.ecr.aws": "pass" } }Now if I do
followed by
docker logout public.ecr.awsthen I can now see
~/.docker/config.json{ "auths": {}, // great! correctly logged out! "credsStore": "desktop", "credHelpers": { "public.ecr.aws": "pass" } }Thus the registry-alias, should not be part of the login.
Is this correct? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions