Publish to Amazon Elastic Container Registry (ECR)

Learn how to create and push Docker images to Amazon Elastic Container Registry (ECR).

Amazon Elastic Container Registry (ECR) is a fully managed container registry from Amazon Web Services (AWS) that allows us to store, manage, share, and deploy our container images anywhere. Storing Docker images on ECR requires us to have an account on the AWS cloud. We can easily create an account on the AWS website if we don’t have one already.

Create an image repository

To push an image to the AWS repository, we must first create an AWS image repository. This is where the image will be stored. We can create a repository by following the steps outlined below:

  1. Log in to the AWS console from your browser.
  2. Open the ECR console from [here].(https://console.aws.amazon.com/ecr/repositories)
  3. Click on the “Create repository” button to create a new repository.
  4. Fill in the image name.
  5. Click on the “Create” button

Get hands-on with 1200+ tech skills courses.