Ends in
00
days
00
hrs
00
mins
00
secs
ENROLL NOW

🚀 25% OFF All Practice Exams & Video Courses, $2.99 eBooks, Savings on PlayCloud and CodeQuest – Cyber Week Blowout

Amazon Elastic Container Registry (Amazon ECR)

Home » AWS Cheat Sheets » AWS Compute Services » Amazon Elastic Container Registry (Amazon ECR)

Amazon Elastic Container Registry (Amazon ECR)

Last updated on November 20, 2025

Amazon Elastic Container Registry Cheat Sheet

  • A managed AWS Docker registry service that operates at the regional level. This design provides flexibility in how images are deployed. You can push and pull images to and from the same AWS Region where your Docker cluster is running, ensuring optimal performance.
  • Amazon Elastic Container Registry (Amazon ECR) is a fully managed container registry that provides high-performance hosting, enabling you to deploy application images and artifacts anywhere reliably.
  • It eliminates the need to operate your own container repositories or worry about scaling the underlying infrastructure.

Features

  • ECR supports Docker Registry HTTP API V2 allowing you to use Docker CLI commands or your preferred Docker tools in maintaining your existing development workflow.
  • ECR stores both the containers you create and any container software you buy through AWS Marketplace.
  • ECR stores your container images in Amazon S3.
  • Tutorials dojo strip
  • ECR supports the ability to define and organize repositories in your registry using namespaces.
  • You can transfer your container images to and from Amazon ECR via HTTPS.

Components

  • Registry
    • A registry is provided to each AWS account. You have a Private Registry (default) for internal images and a Public Registry for sharing images globally.
    • The URL for your default registry is https://aws_account_id.dkr.ecr.region.amazonaws.com.
    • You must authenticate via the AWS CLI (aws ecr get-login-password) to push or pull images.
  • Authorization token
    • Your Docker client needs to authenticate to ECR registries as an AWS user before it can push and pull images. The AWS CLI get-login command provides you with authentication credentials to pass to Docker.
  • Repository
    • An object that contains your Docker images, Open Container Initiative (OCI) images, and OCI compatible artifacts.
    • ECR uses resource-based permissions to let you specify who has access to a repository and what actions they can perform on it.
    • You can configure a repository to be “immutable,” which prevents image tags from being overwritten. This ensures that a specific tag (e.g., v1.0) always points to the exact same image digest, preventing accidental changes to deployed code.
    • ECR lifecycle policies enable you to specify the lifecycle management of images in a repository.
  • Repository policy
    • You can control access to your repositories and the images within them with repository policies.
  • Image
    • Supports Multi-architecture images, allowing you to store variants for different CPU architectures (like x86-64 and ARM/Graviton) under a single image manifest list.
    • You can push and pull Docker images to your repositories. You can use these images locally on your development system, or you can use them in ECS task definitions.
    • You can replicate images in your private repositories across AWS regions.

 

Amazon Elastic Container Registry Security

  • By default, IAM users don’t have permission to create or modify Amazon ECR resources or perform tasks using the Amazon ECR API.
  • Use IAM policies to grant or deny permission to use ECR resources and operations.
  • ECR partially supports resource-level permissions.
  • ECR supports the use of customer master keys (CMK) managed by AWS Key Management Service (KMS) to encrypt container images stored in your ECR repositories.
  • VPC Endpoints (PrivateLink): You can configure interface VPC endpoints to allow your EC2 instances, ECS tasks, or EKS pods to pull images from ECR without traversing the public internet. This ensures that your traffic stays entirely within the AWS network.
  • Image Scanning:
    • Basic Scanning: Uses the Common Vulnerabilities and Exposures (CVEs) database from the open-source Clair project.
    • Enhanced Scanning: Integrates with Amazon Inspector to provide continuous, automated scanning for both operating system and programming language package vulnerabilities.
  • Image Signing:
    • ECR integrates with AWS Signer (using the open-source Notation client) to cryptographically sign your container images.
    • You can then configure your orchestrators (such as EKS) to verify the image’s signature before deployment, ensuring it comes from a trusted source and hasn’t been tampered with.

 

Amazon Elastic Container Registry Pricing

  • You pay only for the amount of data you store in your repositories and data transferred to the Internet.

Storage Costs

  • Standard Storage: You pay for the data stored in your repositories (e.g., $0.10/GB/month in most Regions).
  • Archive Storage: A lower-cost storage tier for rarely accessed images.
    • Ideal for retaining older images for compliance or audit purposes without paying full standard rates.
    • You can use Lifecycle Policies to automatically move images to the Archive tier based on age or pull count.
    • Retrieval: Images in the archive cannot be pulled immediately; they must be “restored” first (typically takes minutes to hours), which incurs a data retrieval fee per GB.
  • Public Repositories: You get 50 GB of free storage per month.

Data Transfer Costs

    Free AWS Courses
  • Data Transfer IN: Transferring data into Amazon ECR is free.
  • Data Transfer OUT:
    • To Same Region: Data transferred to AWS compute resources (like EC2, Lambda, Fargate, or App Runner) within the same Region is free.
    • To Different Region: Charged at standard AWS inter-region data transfer rates (e.g., Cross-Region Replication).
    • To Internet: Charged per GB (tiered pricing).
      • Public Repository Allowance: 500 GB/month free (anonymous) or 5 TB/month free (authenticated with AWS account).

Image Scanning Costs

  • Basic Scanning: Free. Uses the open-source Clair project to scan for CVEs on push.
  • Enhanced Scanning: Charged per image.
    • Initial Scan: ~$0.09 per image scanned on push.
    • Continuous Rescan: ~$0.01 per rescan (automated updates when new vulnerability definitions are added).

Other Costs

  • Pull Through Cache: No additional fee for the feature itself, but you pay for the storage of the cached images and any applicable cross-region data transfer.
  • Lifecycle Policies: The policy engine itself is free. It saves costs by automatically expiring or archiving old images.

Amazon Elastic Container Registry Cheat Sheet References:

https://docs.aws.amazon.com/AmazonECR/latest/userguide/
https://aws.amazon.com/ecr/features/
https://aws.amazon.com/ecr/pricing/
https://aws.amazon.com/ecr/faqs/

🚀 25% OFF All Practice Exams & Video Courses, $2.99 eBooks, Savings on PlayCloud and CodeQuest – Cyber Week Blowout

Tutorials Dojo portal

Learn AWS with our PlayCloud Hands-On Labs

🧑‍💻 50% OFF – CodeQuest Coding Labs

$2.99 AWS and Azure Exam Study Guide eBooks

tutorials dojo study guide eBook

New AWS Generative AI Developer Professional Course AIP-C01

AIP-C01 Exam Guide AIP-C01 examtopics AWS Certified Generative AI Developer Professional Exam Domains AIP-C01

Learn GCP By Doing! Try Our GCP PlayCloud

Learn Azure with our Azure PlayCloud

FREE AI and AWS Digital Courses

FREE AWS, Azure, GCP Practice Test Samplers

Subscribe to our YouTube Channel

Tutorials Dojo YouTube Channel

Follow Us On Linkedin

Written by: Jon Bonso

Jon Bonso is the co-founder of Tutorials Dojo, an EdTech startup and an AWS Digital Training Partner that provides high-quality educational materials in the cloud computing space. He graduated from Mapúa Institute of Technology in 2007 with a bachelor's degree in Information Technology. Jon holds 10 AWS Certifications and is also an active AWS Community Builder since 2020.

AWS, Azure, and GCP Certifications are consistently among the top-paying IT certifications in the world, considering that most companies have now shifted to the cloud. Earn over $150,000 per year with an AWS, Azure, or GCP certification!

Follow us on LinkedIn, YouTube, Facebook, or join our Slack study group. More importantly, answer as many practice exams as you can to help increase your chances of passing your certification exams on your first try!

View Our AWS, Azure, and GCP Exam Reviewers Check out our FREE courses

Our Community

~98%
passing rate
Around 95-98% of our students pass the AWS Certification exams after training with our courses.
200k+
students
Over 200k enrollees choose Tutorials Dojo in preparing for their AWS Certification exams.
~4.8
ratings
Our courses are highly rated by our enrollees from all over the world.

What our students say about us?