Getting private images from AWS ECR Link to heading
- 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:
PROFILEis credentials profile can access to AWS.AWS_ACCOUNT_IDcan be123123123REGIONcan beap-southeast-1
- Then verify the image digest
docker manifest inspect 123123.dkr.ecr.ap-southeast-1.amazonaws.com/release/image:tag -v
- Then pull the image if needed