Easily store, share, and deploy your container software anywhere
servicefree
Amazon Elastic Container Registry (ECR) is AWS's managed registry for Docker images, OCI images and OCI artifacts. Each AWS account gets a private registry, whose repositories are controlled with IAM and repository policies, and a public one whose repositories appear in the Amazon ECR Public Gallery and can be pulled anonymously. Private registries add scan-on-push vulnerability scanning (with Amazon Inspector for enhanced scanning), lifecycle policies that clean up old images, cross-Region and cross-account replication, pull through cache rules for upstream registries, repository creation templates and managed image signing. It works as an extension of Amazon EKS and Amazon ECS, and you sign Docker in with a token from the AWS CLI or the Amazon ECR credential helper.
Problems it solves
- a private container registry in the same AWS account as our EKS and ECS workloads
- control who can push and pull our container images with IAM policies
- automatically delete old untagged images so registry storage stops growing
- scan images for vulnerabilities as soon as they're pushed to our registry
- replicate our container images to other AWS Regions and accounts automatically
- cache Docker Hub and other upstream images inside AWS to avoid rate limits
- publish public container images that anyone can pull without an AWS account
- sign container images on push without running our own signing infrastructure
- pull container images into Lambda and Fargate without paying for transfer in the same Region
- docker login to our AWS registry keeps expiring in CI and needs a fresh token
- store OCI artifacts next to our container images in AWS
- make immutable image tags so nobody can overwrite a production tag
Features
- private registry per account with IAM resource-based permissions
- ECR Public registries and the Amazon ECR Public Gallery (gallery.ecr.aws) with anonymous pulls
- Docker, OCI images and OCI compatible artifacts
- scan on push; enhanced scanning with Amazon Inspector
- lifecycle policies that can be tested before applying
- cross-Region and cross-account replication
- pull through cache rules for upstream registries
- repository creation templates for tag immutability, encryption, policies and lifecycle
- managed signing on push
- regional and global authentication tokens, valid 12 hours by default
View 3 more
- Amazon ECR Docker credential helper
- Docker Registry HTTP API
- AWS Console, AWS CLI, AWS Tools for PowerShell and AWS SDKs
Limitations
- No native Docker CLI sign-in with IAM: docker login needs an Amazon ECR token, which expires after 12 hours by default1
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what Amazon ECR does.
- Azure Container Registry Build, store, secure, and replicate container images and artifacts
- Harbor An open source trusted cloud native registry project that stores, signs, and scans content
- Docker Hub The container registry for storing, managing and sharing Docker images
- DigitalOcean Container Registry A managed registry made for developers
- Quay The open source container-native image registry built for security, robustness and speed, and automation.
- Google Artifact Registry A universal package manager for all your build artifacts and dependencies. Fast, scalable, reliable and secure.
