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.aws which 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
Because if I do
followed by
docker logout public.ecr.aws/z3o4p8r4
then I can still see
~/.docker/config.json
Better is the following:
Good flow with
public.ecr.aws
(notpublic.ecr.aws/z3o4p8r4
)~/.docker/config.json
Now if I do
followed by
docker logout public.ecr.aws
then I can now see
~/.docker/config.json
Thus the registry-alias, should not be part of the login.
Is this correct? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions