Getting private images from AWS ECR Link to heading

  1. Authenticate docker with private registry
aws ecr get-login-password \
  --profile PROFILE \
  --region ap-southeast-1 | 
docker login --username AWS \
  --password-stdin AWS_ACCOUNT_ID.dkr.ecr.REGION.amazonaws.com

Where:

  • PROFILE is credentials profile can access to AWS.
  • AWS_ACCOUNT_ID can be 123123123
  • REGION can be ap-southeast-1
  1. Then verify the image digest
docker manifest inspect 123123.dkr.ecr.ap-southeast-1.amazonaws.com/release/image:tag -v
  1. Then pull the image if needed