Download |verified| A Docker Image From Ecr -
For example, to pull the latest version of an image named my-app from account 123456789012 in us-east-1 : docker pull ://amazonaws.com Use code with caution. Troubleshooting Common Errors Error Message Common Cause Docker is not authenticated with ECR. Re-run the aws ecr get-login-password command from Step 1. "repository name not found" The URI is typed incorrectly or the region is wrong. Verify the URI in the Amazon ECR console. "AccessDeniedException" Your IAM user lacks ecr:BatchGetImage permissions.
An authentication token is used to access any Amazon ECR registry that your IAM principal has access to and is valid for 12 hours. Amazon AWS Documentation get-login-password — AWS CLI 2.34.44 Command Reference
aws ecr get-login-password --region | docker login --username AWS --password-stdin .dkr.ecr. .amazonaws.com Use code with caution. download a docker image from ecr
: Replace this with your AWS region (e.g., us-east-1 ).
docker pull .dkr.ecr. .amazonaws.com/ : Use code with caution. For example, to pull the latest version of
Attach the AmazonEC2ContainerRegistryReadOnly policy to your IAM user. Pro-Tip: Using the Docker Credential Helper
A standard ECR URI looks like this: aws_account_://amazonaws.com Step 3: Download (Pull) the Docker Image "repository name not found" The URI is typed
configured with permissions to access ECR (e.g., AmazonEC2ContainerRegistryReadOnly ). Step 1: Authenticate Docker with Amazon ECR