Compute | Amazon Elastic Container Registry Flashcards
What is Amazon Elastic Container Registry (ECR)?
General
Amazon Elastic Container Registry | Compute
Amazon Elastic Container Registry (ECR) is a fully-managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images. Amazon ECR is integrated with Amazon Elastic Container Service (ECS), simplifying your development to production workflow. Amazon ECR eliminates the need to operate your own container repositories or worry about scaling the underlying infrastructure. Amazon ECR hosts your images in a highly available and scalable architecture, allowing you to reliably deploy containers for your applications. Integration with AWS Identity and Access Management (IAM) provides resource-level control of each repository.
Why should I use Amazon ECR?
General
Amazon Elastic Container Registry | Compute
Amazon ECR eliminates the need to operate and scale the infrastructure required to power your container registry. Amazon ECR uses Amazon S3 for storage to make your container images highly available and accessible, allowing you to reliably deploy new containers for your applications. Amazon ECR transfers your container images over HTTPS and automatically encrypts your images at rest. You can configure policies to manage permissions for each repository and restrict access to IAM users, roles, or other AWS accounts. Amazon ECR integrates with Amazon ECS and the Docker CLI, allowing you to simplify your development and production workflows. You can easily push your container images to Amazon ECR using the Docker CLI from your development machine, and Amazon ECS can pull them directly for production deployments.
What is the pricing for Amazon ECR?
General
Amazon Elastic Container Registry | Compute
With Amazon ECR, there are no upfront fees or commitments. You pay only for the amount of data you store in your repositories and data transferred to the Internet. Please see our Pricing page for more details.
Is Amazon ECR a global service?
General
Amazon Elastic Container Registry | Compute
Amazon ECR is a regional service and is designed to give you flexibility in how images are deployed. You have the ability to push/pull images to the same region where your Docker cluster runs for the best performance. You can also access Amazon ECR anywhere that Docker runs such as desktops and on-premises environments. Pulling images between regions or out to the internet will have additional latency and data transfer costs.
Can Amazon ECR host public container images?
General
Amazon Elastic Container Registry | Compute
Amazon ECR currently supports private images. However, using IAM resource-based permissions, you can configure policies for each repository to allow access to IAM users, roles, or other AWS accounts.
What compliance capabilities can I enable on Amazon ECR?
Using Amazon Elastic Container Registry
Amazon Elastic Container Registry | Compute
You can use AWS CloudTrail on Amazon ECR to provide a history of all API actions such as who pulled an image and when tags were moved between images. Administrators can also find which EC2 instances pulled which images.
How do I get started using Amazon ECR?
Using Amazon Elastic Container Registry
Amazon Elastic Container Registry | Compute
The best way to get started with Amazon ECR is to use the Docker CLI to push and pull and your first image. Visit our Getting Started page for more information.
Can I access Amazon ECR inside a VPC?
Using Amazon Elastic Container Registry
Amazon Elastic Container Registry | Compute
To use Amazon ECR within a VPC, your instances must be able to communicate with the Internet. You can do this with Amazon VPC NAT Gateway.
What’s the best way to manage my repositories and images?
Using Amazon Elastic Container Registry
Amazon Elastic Container Registry | Compute
Amazon ECR provides a command line interface and APIs to create, monitor, and delete repositories and set repository permissions. You can perform the same actions in the Amazon ECR Management Console, which can be accessed via the “Repositories” section of the Amazon ECS Console. Amazon ECR also integrates with the Docker CLI allowing you to push, pull, and tag images on your development machine.
Does Amazon ECR replicate images across regions?
Using Amazon Elastic Container Registry
Amazon Elastic Container Registry | Compute
No. Amazon ECR is designed to give you flexibility in where you store and how you deploy your images. You can create deployment pipelines that build images, push them to Amazon ECR in selected regions, and then deploy the images to your Docker cluster.
Can I use Amazon ECR within local and on-premises environments?
Using Amazon Elastic Container Registry
Amazon Elastic Container Registry | Compute
Yes. You can access Amazon ECR anywhere that Docker runs such as desktops and on-premises environments.
Does Amazon ECR provide an Amazon Linux container image?
Using Amazon Elastic Container Registry
Amazon Elastic Container Registry | Compute
Yes. Amazon ECR provides Amazon Linux container images, and detailed steps can be found on the forums. Customers can use these container images to run workloads in their Linux-based Docker environment. The container image has a minimal set of packages and is able to install the full set of Amazon Linux AMI packages. Similar to the Amazon Linux AMI in EC2, Amazon Linux container images will get ongoing updates from Amazon in the form of security updates, rolling releases, and package updates.
Does Amazon ECR work with Amazon ECS?
Using Amazon Elastic Container Registry
Amazon Elastic Container Registry | Compute
Yes. Amazon ECR is integrated with Amazon ECS allowing you to easily store, run, and manage container images for applications running on Amazon ECS. All you need to do is specify the Amazon ECR repository in your Task Definition and Amazon ECS will retrieve the appropriate images for your applications.
Does Amazon ECR work with AWS Elastic Beanstalk?
Using Amazon Elastic Container Registry
Amazon Elastic Container Registry | Compute
Yes. AWS Elastic Beanstalk supports Amazon ECR for both single and multi-container Docker environments allowing you to easily deploy container images stored in Amazon ECR with AWS Elastic Beanstalk. All you need to do is specify the Amazon ECR repository in your Dockerrun.aws.json configuration and attach the AmazonEC2ContainerRegistryReadOnly policy to your container instance role.
What version of Docker Engine does Amazon ECR support?
Using Amazon Elastic Container Registry
Amazon Elastic Container Registry | Compute
Amazon ECR currently supports Docker Engine 1.7.0 and up.