Using Amazon Elastic Container Registry

ECR Free Tier limited to 500 Mb
AWS Containers Services: ECR, ECS and EKS

Preconditions

Step 01: Getting Started in AWS

Screen where we have created the IAM User with AdministratorAccess
We are ready in AWS

Step 02: Getting Started with AWS ECR (creation)

Wellcome page AWS ECR
Giving a Registry Name
When we the registry is created, it give some useful commands

Step 03: Login in our AWS ECR

$ aws ecr get-login - region us-west-2

Step 04: Build and Push Images on our AWS ECR

$ docker build -t dockerimages .
docker build -t dockerimages . (continue)
build successful docker image
The image was built and in the local registry
$ docker tag    ... (prefix aws registry name)$ docker push   ... (the registry where I am logged in)
docker tag, and docker push to AWS ECR Registry
docker tag, and docker push to AWS ECR Registry ready
The image was pushed to AWS ECR

Step 05: Recover and Pull our Docker Image

$ aws ecr describe-repositories$ sudo docker images $ sudo docker rmi -f <id>
We will remove first the image from our local registry
Docker image were removed
$ docker pull <aws_account_id>.dkr.ecr.us-west-2.amazonaws.com/dockerimages:latest

Final Words

Resources

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store