Amazon Elastic Container Registry (ECR) is a fully-managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images.
Registry
Create ECR Repository from the AWS Console, example: lexicon-webmvc
1 | 000000000000.dkr.ecr.ap-southeast-2.amazonaws.com/lexicon-webmvc |
Push image from Local
Updated 05/04/2022
Use the CLI to generate your login command
CLI V2
get-login-password
is the new command and I am piping the response into the next docker login
command which is then read with --password-stdin
1 | aws --profile carlos ecr get-login-password --region ap-southeast-2 | docker login --username AWS --password-stdin 000000000000.dkr.ecr.ap-southeast-2.amazonaws.com |
CLI V1
1 | aws ecr get-login --no-include-email --region ap-southeast-2 |
Now the image will be available at the ECR.