Amazon ECR

From NovaOrdis Knowledge Base
Revision as of 09:48, 6 February 2019 by Ovidiu (talk | contribs) (→‎Configure Access)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

External

Internal

Overview

Amazon Elastic Container Registry (Amazon ECR) is a managed Docker registry service. Customers can use the Docker CLI to push, pull, and manage images. Amazon ECR provides a secure, scalable, and reliable registry. Amazon ECR supports private Docker repositories with resource-based permissions using IAM so that specific users or Amazon EC2 instances can access repositories and images. Developers can use the Docker CLI to author and manage images.

Configure Access

  • Install the latest AWS CLI
  • Install Docker
  • Retrieve the login command to use to authenticate your Docker client to your registry (use the actual region):
aws ecr get-login --no-include-email --region us-west-2 [--registry-ids AWS_ACOUNT_ID1 AWS_ACCOUNT_ID2 ...]

The return of the command is similar to:

docker login -u AWS -p .... https://673499572719.dkr.ecr.us-west-2.amazonaws.com

Run the command to log into the repository.

Subjects