Using Amazon Elastic Container Registry

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

Preconditions

  • An AWS account (free tier is Ok)
  • An IAM user with AdministratorAccess
  • AWS CLI Installed (If you need support, see Install AWS CLI on Ubuntu)

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

Official Doc

Related Posts

--

--

--

#cloud . #mobile ~} Sharing IT while learning It! ... Opinions are for my own

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Yes, CSS can also be optimized

________ team consists of members joined together electronically, with nominal in-person contact?

Project: Juice Shop Vulnerabilities Report

Mentoring the Developing World

Ruby on Rails is the world’s fastest web framework for startups

Getting Started with PGAdmin on a Distributed SQL Database

Understanding a competitive programming problem

An image with the text: Read, think, write, and code. Solving problems in LeetCode

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
Pablo Ezequiel Inchausti

Pablo Ezequiel Inchausti

#cloud . #mobile ~} Sharing IT while learning It! ... Opinions are for my own

More from Medium

AWS Database Authentication with IAM

Docker, Containers & Confusions

Migrate AWS RDS with PostgreSQL database with zero downtime

How to use AWS Bottlerocket

GitHub - bottlerocket-os/bottlerocket: An operating system designed for  hosting containers