AWS › Elastic Container Registry (ECR)

What is Amazon Elastic Container Registry and how does it fit into a containerized application workflow?

Beginner

Answer

Amazon Elastic Container Registry, or ECR, is a fully managed Docker container registry that lets you store, manage, and deploy container images securely, integrating tightly with services like ECS, EKS, and Fargate, so once you build and push a container image to ECR, it can be pulled directly by those services during deployment without needing to manage your own separate container registry infrastructure.
aws ecr create-repository --repository-name my-app
docker push 123456789012.dkr.ecr.us-east-1.amazonaws.com/my-app:latest
Real-world example A development team builds a Docker image for their application, pushes it to a private ECR repository, and then configures their ECS task definition to pull that exact image directly from ECR during deployment.

Common follow-ups: What is the difference between ECR and a public registry like Docker Hub?;Can ECR store images for non Docker container formats?