Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    The accepted answer cannot work because podman --password-stdin means "read the password from stdin". This answer was copied incorrectly from github.com/vumdao/…. The 2 commands should have been connected via a pipe
    – Mike Slinn
    Commented May 4, 2021 at 5:01
  • 4
    Yes! Today, I'm using like this: aws ecr get-login-password --region us-east-1 | podman login --username AWS --password-stdin <aws_account_id>.dkr.ecr.<region>.amazonaws.com
    – MauTOz
    Commented Jun 20, 2021 at 13:33
  • Downvoted for presenting what was clearly intended to be a single command as two separate commands... Commented Sep 7, 2023 at 15:15
  • 1
    The token from ecr get-login-password is region-specific, so the AWS region for aws ecr get-login-password ... and the ECR URI must macht. I try to adpat the response above. Commented Jan 10 at 10:37