ECR Flashcards
This deck aims to help retain concepts related to the ECR service.
Which AWS service provides a secure, scalable, and reliable managed container image registry?
Amazon Elastic Container Registry (ECR)
What types of ECR registries does each AWS account have?
Each AWS account has two types of registries:
- Public: Read-only by default, with read-write access requiring permissions
- Private: Both read-only and read-write access require permissions
What are the primary components of the ECR service?
The main components of ECR include:
- Public and Private Registries: Each registry can contain multiple repositories
- Repositories: Each repository can hold multiple images
- Images: Each image can have several tags (representing different versions)
Which ECR feature automatically scans container images for known software vulnerabilities?
Security Scanning, available in both basic and enhanced modes, with the enhanced mode using AWS Inspector
What are the primary features of the ECR service?
- Supports cross-region and cross-account replication
- Supports events via EventBridge
- Integrated with IAM for access control
- Provides near real-time metrics via CloudWatch
- Logs API actions through AWS CloudTrail
What option can be used to retag images stored in AWS ECR?
Use the --image-tag
option with the put-image
command:
aws ecr put-image \
--repository-name <name> \
--image-tag <tag> \
--image-manifest <manifest>
What does image tag immutability do in AWS ECR?
Prevents image tags from being overwritten
What error is returned if an existing image tag is pushed to an ECR repository with tag immutability enabled?
ImageTagAlreadyExistsException` error
What types of images can AWS ECR store?
- Docker images
- Open Container Initiative (OCI) images
- OCI-compatible artifacts
Does Amazon ECR support multi-architecture images?
Yes, it supports pushing multi-architectural images to a private registry (experimental features need to be enabled)
What command is required to push multi-architecture images to Amazon ECR?
docker manifest push