Generate a password token for Docker login.
Section: ECR
Get ECR login password
bash
bash
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 123456789012.dkr.ecr.us-west-2.amazonaws.comExplanation
Common first step before pushing or pulling private ECR images.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing ECR
Describe image details
Inspect pushed images, tags, sizes, and timestamps.
Delete one or more images
Remove images from a repository by tag or digest.
Set an ECR lifecycle policy
Attach a lifecycle policy document to a repository.