SlideShare a Scribd company logo
1 of 34
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Mitch Beaumont, Solutions Architect
& Shai Perednik, Cloud Infrastructure Architect
November 2017
Introduction to Amazon ECR
Amazon EC2 Container Registry
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What will we cover today?
• The AWS Container Ecosystem
• What is Amazon ECR
• Features of Amazon ECR
• Amazon ECR in action
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Shai Perednik
Senior Cloud Infrastructure Architect
AWS Professional Services NYC
20 YRS in IT
Moved from CA -> PA
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The AWS Container Ecosystem
EC2 Container Service
EC2 Container
Registry
ECS
CLI
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is Amazon EC2 Container Registry (ECR)?
Fully Managed Secure Highly Available Simplified Workflow
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Anatomy of a Docker Image
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Docker Images
Packaged
application code
Reproducible Immutable Portable
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Docker Images
747cb2d60bbe
a8bdc7fdaa4f
1f7916b037e5
Layers
Image
Layer Data
hello-ecr:latest
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Typical User Workflow
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Typical User Workflow
I have a Docker
image, and I want to
run the image on a
cluster
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Typical User Workflow
Amazon
ECR
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Typical User Workflow
Amazon
ECS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Typical User Workflow
Amazon
ECS
Amazon
ECR
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ECR Components
Amazon ECR
• Registry & Repository
• Registry Policy
• Image
• Authorization Token
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pricing & Availability
• Available in 13 regions
• 12-month free tier for 500MB image storage
• $0.10 per GB / month Docker image storage pricing
• Standard AWS Data Transfer Rate
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Features and Integrations
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2 Container Service Integration
• EC2 instances must have the following IAM permissions:
ecr:BatchCheckLayerAvailability
ecr:BatchGetImage
ecr:GetDownloadUrlForLayer
ecr:GetAuthorizationToken
IAM
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2 Container Service Integration
• Use the
AmazonEC2ContainerServiceforEC2Role
managed policy.
• Task definitions must use the full
registry/repository:tag naming for images.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Docker Registry V2 API
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Docker Support
Pulling an Image
$docker pull <registry-uri>/image-name:tag
Docker daemon
1. Fetches image manifest at tag
2. For each layer that it doesn’t have:
1. Fetch layer
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Docker Support
Pulling an Image
$docker pull <registry-uri>/image-name:tag
Docker daemon
1. Fetches image manifest at tag
2. For each layer that it doesn’t have:
1. Fetch layer
Pulling an Image
$docker pull <registry-uri>/image-name:tag
Docker daemon
1. GET /v2/<image-name>/manifests/<tag>
2. For each layer that it doesn’t have:
1. GET /v2/<image-name>/blobs/<digest>
HTTP
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon S3 High Availability and Durability
• Highly scalable object storage
• Store and retrieve files from anywhere on the web
• Files are stored as objects and organised in to high-level
folders called buckets
• Supports multi-part upload for large files and event
notifications when objects change
• Files up to 5TB in size
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Team Collaboration
Amazon
ECR
team-a/web-app team-b/web-app
https://205094881157.dkr.ecr.us-west-2.amazonaws.com
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Access Control
instance
Production/web-app
Developer
{
“ecr:PutImage”,
“ecr:InitiateLayerUpload”,
“ecr:UploadLayerPart”,
“ecr:CompleteLayerUpload”,
“ecr:GetAuthorizationToken”
}
{
“ecr:BatchCheckLayerAvailability”,
“ecr:BatchGetImage”,
“ecr:GetDownloadUrlForLayer”,
“ecr:GetAuthorizationToken”
}
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Encryption
Amazon ECR
AWS KMS
Images
transferred by
HTTPS Automatically
encrypted at rest
using Amazon S3
server-side
encryption
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Third-party Integrations
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Creating a registry
Demo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pushing and image with the AWS CLI
Demo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Building and Pushing and image with Code*
Demo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Task Definitions and Container Images
Demo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ECR Lifecycle Policies
Demo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Optimising Performance for ECR
• Use Docker 1.10
• Use smaller base images
• Understand your dependencies
• Chain commands
• Use closest regional endpoint
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What we’ve covered today
• ECR is a fully managed Docker
image registry
• Compatible with Docker Registry
v2 API
• Integrates with Amazon EC2
Container Service
• Fine grained access control
• Cloudtrail integration.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!
Questions?

More Related Content

What's hot

Amazon EKS - Elastic Container Service for Kubernetes
Amazon EKS - Elastic Container Service for KubernetesAmazon EKS - Elastic Container Service for Kubernetes
Amazon EKS - Elastic Container Service for KubernetesAmazon Web Services
 
Deep Dive on Amazon Elastic Container Service (ECS) and Fargate
Deep Dive on Amazon Elastic Container Service (ECS) and FargateDeep Dive on Amazon Elastic Container Service (ECS) and Fargate
Deep Dive on Amazon Elastic Container Service (ECS) and FargateAmazon Web Services
 
Deep Dive into Amazon ECS & Fargate
Deep Dive into Amazon ECS & FargateDeep Dive into Amazon ECS & Fargate
Deep Dive into Amazon ECS & FargateAmazon Web Services
 
AWS Kubernetes 서비스 자세히 살펴보기 (정영준 & 이창수, AWS 솔루션즈 아키텍트) :: AWS DevDay2018
AWS Kubernetes 서비스 자세히 살펴보기 (정영준 & 이창수, AWS 솔루션즈 아키텍트) :: AWS DevDay2018AWS Kubernetes 서비스 자세히 살펴보기 (정영준 & 이창수, AWS 솔루션즈 아키텍트) :: AWS DevDay2018
AWS Kubernetes 서비스 자세히 살펴보기 (정영준 & 이창수, AWS 솔루션즈 아키텍트) :: AWS DevDay2018Amazon Web Services Korea
 
Platform engineering 101
Platform engineering 101Platform engineering 101
Platform engineering 101Sander Knape
 
Deep dive ECS & Fargate Deep Dive
Deep dive ECS & Fargate Deep DiveDeep dive ECS & Fargate Deep Dive
Deep dive ECS & Fargate Deep DiveAmazon Web Services
 
Introduction to AWS Secrets Manager
Introduction to AWS Secrets ManagerIntroduction to AWS Secrets Manager
Introduction to AWS Secrets ManagerAmazon Web Services
 
Introduction to AWS Cost Management
Introduction to AWS Cost ManagementIntroduction to AWS Cost Management
Introduction to AWS Cost ManagementAmazon Web Services
 
(CMP201) All You Need To Know About Auto Scaling
(CMP201) All You Need To Know About Auto Scaling(CMP201) All You Need To Know About Auto Scaling
(CMP201) All You Need To Know About Auto ScalingAmazon Web Services
 
Terraform -- Infrastructure as Code
Terraform -- Infrastructure as CodeTerraform -- Infrastructure as Code
Terraform -- Infrastructure as CodeMartin Schütte
 

What's hot (20)

Amazon EKS - Elastic Container Service for Kubernetes
Amazon EKS - Elastic Container Service for KubernetesAmazon EKS - Elastic Container Service for Kubernetes
Amazon EKS - Elastic Container Service for Kubernetes
 
Deep Dive on Amazon Elastic Container Service (ECS) and Fargate
Deep Dive on Amazon Elastic Container Service (ECS) and FargateDeep Dive on Amazon Elastic Container Service (ECS) and Fargate
Deep Dive on Amazon Elastic Container Service (ECS) and Fargate
 
Deep Dive into Amazon ECS & Fargate
Deep Dive into Amazon ECS & FargateDeep Dive into Amazon ECS & Fargate
Deep Dive into Amazon ECS & Fargate
 
AWS Kubernetes 서비스 자세히 살펴보기 (정영준 & 이창수, AWS 솔루션즈 아키텍트) :: AWS DevDay2018
AWS Kubernetes 서비스 자세히 살펴보기 (정영준 & 이창수, AWS 솔루션즈 아키텍트) :: AWS DevDay2018AWS Kubernetes 서비스 자세히 살펴보기 (정영준 & 이창수, AWS 솔루션즈 아키텍트) :: AWS DevDay2018
AWS Kubernetes 서비스 자세히 살펴보기 (정영준 & 이창수, AWS 솔루션즈 아키텍트) :: AWS DevDay2018
 
AWS ECS vs EKS
AWS ECS vs EKSAWS ECS vs EKS
AWS ECS vs EKS
 
Platform engineering 101
Platform engineering 101Platform engineering 101
Platform engineering 101
 
Deep dive ECS & Fargate Deep Dive
Deep dive ECS & Fargate Deep DiveDeep dive ECS & Fargate Deep Dive
Deep dive ECS & Fargate Deep Dive
 
Accelerating with Ansible
Accelerating with AnsibleAccelerating with Ansible
Accelerating with Ansible
 
Introduction to AWS Secrets Manager
Introduction to AWS Secrets ManagerIntroduction to AWS Secrets Manager
Introduction to AWS Secrets Manager
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
Amazon API Gateway
Amazon API GatewayAmazon API Gateway
Amazon API Gateway
 
DevOps and AWS
DevOps and AWSDevOps and AWS
DevOps and AWS
 
AWS Containers Day.pdf
AWS Containers Day.pdfAWS Containers Day.pdf
AWS Containers Day.pdf
 
AWS Secrets Manager
AWS Secrets ManagerAWS Secrets Manager
AWS Secrets Manager
 
Introduction to AWS Cost Management
Introduction to AWS Cost ManagementIntroduction to AWS Cost Management
Introduction to AWS Cost Management
 
Deep Dive - CI/CD on AWS
Deep Dive - CI/CD on AWSDeep Dive - CI/CD on AWS
Deep Dive - CI/CD on AWS
 
Amazon EKS Deep Dive
Amazon EKS Deep DiveAmazon EKS Deep Dive
Amazon EKS Deep Dive
 
(CMP201) All You Need To Know About Auto Scaling
(CMP201) All You Need To Know About Auto Scaling(CMP201) All You Need To Know About Auto Scaling
(CMP201) All You Need To Know About Auto Scaling
 
Intro to Amazon ECS
Intro to Amazon ECSIntro to Amazon ECS
Intro to Amazon ECS
 
Terraform -- Infrastructure as Code
Terraform -- Infrastructure as CodeTerraform -- Infrastructure as Code
Terraform -- Infrastructure as Code
 

Viewers also liked

Video onesheeter-jun2015
Video onesheeter-jun2015Video onesheeter-jun2015
Video onesheeter-jun2015NVIDIA
 
NVIDIA CES 2016 Highlights
NVIDIA CES 2016 HighlightsNVIDIA CES 2016 Highlights
NVIDIA CES 2016 HighlightsNVIDIA
 
NVIDIA Testimony at Senate Commerce, Science, and Transportation Committee He...
NVIDIA Testimony at Senate Commerce, Science, and Transportation Committee He...NVIDIA Testimony at Senate Commerce, Science, and Transportation Committee He...
NVIDIA Testimony at Senate Commerce, Science, and Transportation Committee He...NVIDIA
 
NVIDIA SAP Sapphire 2017 Show Guide
NVIDIA SAP Sapphire 2017 Show Guide NVIDIA SAP Sapphire 2017 Show Guide
NVIDIA SAP Sapphire 2017 Show Guide NVIDIA
 
Running Containerised Applications at Scale on AWS
Running Containerised Applications at Scale on AWSRunning Containerised Applications at Scale on AWS
Running Containerised Applications at Scale on AWSAmazon Web Services
 
Compare Streaming Media Players With NVIDIA SHIELD
Compare Streaming Media Players With NVIDIA SHIELDCompare Streaming Media Players With NVIDIA SHIELD
Compare Streaming Media Players With NVIDIA SHIELDNVIDIA
 
Artificial Intelligence (AI) 100 Startups 2017
Artificial Intelligence (AI) 100 Startups 2017Artificial Intelligence (AI) 100 Startups 2017
Artificial Intelligence (AI) 100 Startups 2017Sota Watanabe
 
Working with Amazon Lex Chatbots in Amazon Connect - AWS Online Tech Talks
Working with Amazon Lex Chatbots in Amazon Connect - AWS Online Tech TalksWorking with Amazon Lex Chatbots in Amazon Connect - AWS Online Tech Talks
Working with Amazon Lex Chatbots in Amazon Connect - AWS Online Tech TalksAmazon Web Services
 
HPC Top 5 Stories: October 13, 2017
HPC Top 5 Stories: October 13, 2017HPC Top 5 Stories: October 13, 2017
HPC Top 5 Stories: October 13, 2017NVIDIA
 
GTC 2016 Opening Keynote
GTC 2016 Opening KeynoteGTC 2016 Opening Keynote
GTC 2016 Opening KeynoteNVIDIA
 
Revolutionizing Radiology with Deep Learning: The Road to RSNA 2017
Revolutionizing Radiology with Deep Learning: The Road to RSNA 2017Revolutionizing Radiology with Deep Learning: The Road to RSNA 2017
Revolutionizing Radiology with Deep Learning: The Road to RSNA 2017NVIDIA
 
Top 5 Deep Learning and AI Stories - November 3, 2017
Top 5 Deep Learning and AI Stories - November 3, 2017Top 5 Deep Learning and AI Stories - November 3, 2017
Top 5 Deep Learning and AI Stories - November 3, 2017NVIDIA
 
WKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot Instances
WKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot InstancesWKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot Instances
WKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot InstancesAmazon Web Services
 
Sentiment Analysis Using Apache MXNet and Gluon - AWS Online Tech Talks
Sentiment Analysis Using Apache MXNet and Gluon - AWS Online Tech TalksSentiment Analysis Using Apache MXNet and Gluon - AWS Online Tech Talks
Sentiment Analysis Using Apache MXNet and Gluon - AWS Online Tech TalksAmazon Web Services
 
Building Serverless Websites with Lambda@Edge - AWS Online Tech Talks
Building Serverless Websites with Lambda@Edge - AWS Online Tech TalksBuilding Serverless Websites with Lambda@Edge - AWS Online Tech Talks
Building Serverless Websites with Lambda@Edge - AWS Online Tech TalksAmazon Web Services
 
Top 5 Deep Learning and AI Stories - October 6, 2017
Top 5 Deep Learning and AI Stories - October 6, 2017Top 5 Deep Learning and AI Stories - October 6, 2017
Top 5 Deep Learning and AI Stories - October 6, 2017NVIDIA
 
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017Carol Smith
 

Viewers also liked (17)

Video onesheeter-jun2015
Video onesheeter-jun2015Video onesheeter-jun2015
Video onesheeter-jun2015
 
NVIDIA CES 2016 Highlights
NVIDIA CES 2016 HighlightsNVIDIA CES 2016 Highlights
NVIDIA CES 2016 Highlights
 
NVIDIA Testimony at Senate Commerce, Science, and Transportation Committee He...
NVIDIA Testimony at Senate Commerce, Science, and Transportation Committee He...NVIDIA Testimony at Senate Commerce, Science, and Transportation Committee He...
NVIDIA Testimony at Senate Commerce, Science, and Transportation Committee He...
 
NVIDIA SAP Sapphire 2017 Show Guide
NVIDIA SAP Sapphire 2017 Show Guide NVIDIA SAP Sapphire 2017 Show Guide
NVIDIA SAP Sapphire 2017 Show Guide
 
Running Containerised Applications at Scale on AWS
Running Containerised Applications at Scale on AWSRunning Containerised Applications at Scale on AWS
Running Containerised Applications at Scale on AWS
 
Compare Streaming Media Players With NVIDIA SHIELD
Compare Streaming Media Players With NVIDIA SHIELDCompare Streaming Media Players With NVIDIA SHIELD
Compare Streaming Media Players With NVIDIA SHIELD
 
Artificial Intelligence (AI) 100 Startups 2017
Artificial Intelligence (AI) 100 Startups 2017Artificial Intelligence (AI) 100 Startups 2017
Artificial Intelligence (AI) 100 Startups 2017
 
Working with Amazon Lex Chatbots in Amazon Connect - AWS Online Tech Talks
Working with Amazon Lex Chatbots in Amazon Connect - AWS Online Tech TalksWorking with Amazon Lex Chatbots in Amazon Connect - AWS Online Tech Talks
Working with Amazon Lex Chatbots in Amazon Connect - AWS Online Tech Talks
 
HPC Top 5 Stories: October 13, 2017
HPC Top 5 Stories: October 13, 2017HPC Top 5 Stories: October 13, 2017
HPC Top 5 Stories: October 13, 2017
 
GTC 2016 Opening Keynote
GTC 2016 Opening KeynoteGTC 2016 Opening Keynote
GTC 2016 Opening Keynote
 
Revolutionizing Radiology with Deep Learning: The Road to RSNA 2017
Revolutionizing Radiology with Deep Learning: The Road to RSNA 2017Revolutionizing Radiology with Deep Learning: The Road to RSNA 2017
Revolutionizing Radiology with Deep Learning: The Road to RSNA 2017
 
Top 5 Deep Learning and AI Stories - November 3, 2017
Top 5 Deep Learning and AI Stories - November 3, 2017Top 5 Deep Learning and AI Stories - November 3, 2017
Top 5 Deep Learning and AI Stories - November 3, 2017
 
WKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot Instances
WKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot InstancesWKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot Instances
WKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot Instances
 
Sentiment Analysis Using Apache MXNet and Gluon - AWS Online Tech Talks
Sentiment Analysis Using Apache MXNet and Gluon - AWS Online Tech TalksSentiment Analysis Using Apache MXNet and Gluon - AWS Online Tech Talks
Sentiment Analysis Using Apache MXNet and Gluon - AWS Online Tech Talks
 
Building Serverless Websites with Lambda@Edge - AWS Online Tech Talks
Building Serverless Websites with Lambda@Edge - AWS Online Tech TalksBuilding Serverless Websites with Lambda@Edge - AWS Online Tech Talks
Building Serverless Websites with Lambda@Edge - AWS Online Tech Talks
 
Top 5 Deep Learning and AI Stories - October 6, 2017
Top 5 Deep Learning and AI Stories - October 6, 2017Top 5 Deep Learning and AI Stories - October 6, 2017
Top 5 Deep Learning and AI Stories - October 6, 2017
 
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
 

Similar to AWS ECR: Introduction to Amazon EC2 Container Registry

CON309_Containerized Machine Learning on AWS
CON309_Containerized Machine Learning on AWSCON309_Containerized Machine Learning on AWS
CON309_Containerized Machine Learning on AWSAmazon Web Services
 
Amazon Amazon Elastic Container Service (Amazon ECS)
Amazon Amazon Elastic Container Service (Amazon ECS)Amazon Amazon Elastic Container Service (Amazon ECS)
Amazon Amazon Elastic Container Service (Amazon ECS)Amazon Web Services
 
Getting Started with Containers on AWS
Getting Started with Containers on AWSGetting Started with Containers on AWS
Getting Started with Containers on AWSAmazon Web Services
 
NEW LAUNCH! Introducing AWS Fargate - CON214 - re:Invent 2017
NEW LAUNCH! Introducing AWS Fargate - CON214 - re:Invent 2017NEW LAUNCH! Introducing AWS Fargate - CON214 - re:Invent 2017
NEW LAUNCH! Introducing AWS Fargate - CON214 - re:Invent 2017Amazon Web Services
 
Semplificare la gestione dei container con i servizi AWS
Semplificare la gestione dei container con i servizi AWSSemplificare la gestione dei container con i servizi AWS
Semplificare la gestione dei container con i servizi AWSAmazon Web Services
 
Batch Processing with Containers on AWS - CON304 - re:Invent 2017
Batch Processing with Containers on AWS - CON304 - re:Invent 2017Batch Processing with Containers on AWS - CON304 - re:Invent 2017
Batch Processing with Containers on AWS - CON304 - re:Invent 2017Amazon Web Services
 
Create a Serverless Image Processing Platform
Create a Serverless Image Processing PlatformCreate a Serverless Image Processing Platform
Create a Serverless Image Processing PlatformAmazon Web Services
 
Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017
Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017
Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017Amazon Web Services
 
Reactive Architectures with Microservices
Reactive Architectures with MicroservicesReactive Architectures with Microservices
Reactive Architectures with MicroservicesAWS Germany
 
Build a Java Spring Application on Amazon ECS - CON332 - re:Invent 2017
Build a Java Spring Application on Amazon ECS - CON332 - re:Invent 2017Build a Java Spring Application on Amazon ECS - CON332 - re:Invent 2017
Build a Java Spring Application on Amazon ECS - CON332 - re:Invent 2017Amazon Web Services
 
CON209_Interstella 8888 Learn How to Use Docker on AWS
CON209_Interstella 8888 Learn How to Use Docker on AWSCON209_Interstella 8888 Learn How to Use Docker on AWS
CON209_Interstella 8888 Learn How to Use Docker on AWSAmazon Web Services
 
CON209_Interstella 8888 Learn How to Use Docker on AWS
CON209_Interstella 8888 Learn How to Use Docker on AWSCON209_Interstella 8888 Learn How to Use Docker on AWS
CON209_Interstella 8888 Learn How to Use Docker on AWSAmazon Web Services
 
Create a Serverless Image Processing Platform - ARC326 - re:Invent 2017
Create a Serverless Image Processing Platform - ARC326 - re:Invent 2017Create a Serverless Image Processing Platform - ARC326 - re:Invent 2017
Create a Serverless Image Processing Platform - ARC326 - re:Invent 2017Amazon Web Services
 
SRV314 Containerized App Development with AWS Fargate
SRV314 Containerized App Development with AWS FargateSRV314 Containerized App Development with AWS Fargate
SRV314 Containerized App Development with AWS FargateAmazon Web Services
 

Similar to AWS ECR: Introduction to Amazon EC2 Container Registry (20)

CON309_Containerized Machine Learning on AWS
CON309_Containerized Machine Learning on AWSCON309_Containerized Machine Learning on AWS
CON309_Containerized Machine Learning on AWS
 
Amazon ECS Deep Dive
Amazon ECS Deep DiveAmazon ECS Deep Dive
Amazon ECS Deep Dive
 
Amazon Amazon Elastic Container Service (Amazon ECS)
Amazon Amazon Elastic Container Service (Amazon ECS)Amazon Amazon Elastic Container Service (Amazon ECS)
Amazon Amazon Elastic Container Service (Amazon ECS)
 
Introducing Amazon Fargate
Introducing Amazon FargateIntroducing Amazon Fargate
Introducing Amazon Fargate
 
ARC205_Born in the Cloud
ARC205_Born in the CloudARC205_Born in the Cloud
ARC205_Born in the Cloud
 
Getting Started with Containers on AWS
Getting Started with Containers on AWSGetting Started with Containers on AWS
Getting Started with Containers on AWS
 
Containers on AWS
Containers on AWSContainers on AWS
Containers on AWS
 
NEW LAUNCH! Introducing AWS Fargate - CON214 - re:Invent 2017
NEW LAUNCH! Introducing AWS Fargate - CON214 - re:Invent 2017NEW LAUNCH! Introducing AWS Fargate - CON214 - re:Invent 2017
NEW LAUNCH! Introducing AWS Fargate - CON214 - re:Invent 2017
 
Semplificare la gestione dei container con i servizi AWS
Semplificare la gestione dei container con i servizi AWSSemplificare la gestione dei container con i servizi AWS
Semplificare la gestione dei container con i servizi AWS
 
Batch Processing with Containers on AWS - CON304 - re:Invent 2017
Batch Processing with Containers on AWS - CON304 - re:Invent 2017Batch Processing with Containers on AWS - CON304 - re:Invent 2017
Batch Processing with Containers on AWS - CON304 - re:Invent 2017
 
Containers - State of the Union
Containers - State of the UnionContainers - State of the Union
Containers - State of the Union
 
AWS 容器服務入門實務
AWS 容器服務入門實務AWS 容器服務入門實務
AWS 容器服務入門實務
 
Create a Serverless Image Processing Platform
Create a Serverless Image Processing PlatformCreate a Serverless Image Processing Platform
Create a Serverless Image Processing Platform
 
Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017
Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017
Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017
 
Reactive Architectures with Microservices
Reactive Architectures with MicroservicesReactive Architectures with Microservices
Reactive Architectures with Microservices
 
Build a Java Spring Application on Amazon ECS - CON332 - re:Invent 2017
Build a Java Spring Application on Amazon ECS - CON332 - re:Invent 2017Build a Java Spring Application on Amazon ECS - CON332 - re:Invent 2017
Build a Java Spring Application on Amazon ECS - CON332 - re:Invent 2017
 
CON209_Interstella 8888 Learn How to Use Docker on AWS
CON209_Interstella 8888 Learn How to Use Docker on AWSCON209_Interstella 8888 Learn How to Use Docker on AWS
CON209_Interstella 8888 Learn How to Use Docker on AWS
 
CON209_Interstella 8888 Learn How to Use Docker on AWS
CON209_Interstella 8888 Learn How to Use Docker on AWSCON209_Interstella 8888 Learn How to Use Docker on AWS
CON209_Interstella 8888 Learn How to Use Docker on AWS
 
Create a Serverless Image Processing Platform - ARC326 - re:Invent 2017
Create a Serverless Image Processing Platform - ARC326 - re:Invent 2017Create a Serverless Image Processing Platform - ARC326 - re:Invent 2017
Create a Serverless Image Processing Platform - ARC326 - re:Invent 2017
 
SRV314 Containerized App Development with AWS Fargate
SRV314 Containerized App Development with AWS FargateSRV314 Containerized App Development with AWS Fargate
SRV314 Containerized App Development with AWS Fargate
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

AWS ECR: Introduction to Amazon EC2 Container Registry

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Mitch Beaumont, Solutions Architect & Shai Perednik, Cloud Infrastructure Architect November 2017 Introduction to Amazon ECR Amazon EC2 Container Registry
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What will we cover today? • The AWS Container Ecosystem • What is Amazon ECR • Features of Amazon ECR • Amazon ECR in action
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Shai Perednik Senior Cloud Infrastructure Architect AWS Professional Services NYC 20 YRS in IT Moved from CA -> PA
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The AWS Container Ecosystem EC2 Container Service EC2 Container Registry ECS CLI
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What is Amazon EC2 Container Registry (ECR)? Fully Managed Secure Highly Available Simplified Workflow
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Anatomy of a Docker Image
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Docker Images Packaged application code Reproducible Immutable Portable
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Docker Images 747cb2d60bbe a8bdc7fdaa4f 1f7916b037e5 Layers Image Layer Data hello-ecr:latest
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Typical User Workflow
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Typical User Workflow I have a Docker image, and I want to run the image on a cluster
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Typical User Workflow Amazon ECR
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Typical User Workflow Amazon ECS
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Typical User Workflow Amazon ECS Amazon ECR
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ECR Components Amazon ECR • Registry & Repository • Registry Policy • Image • Authorization Token
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pricing & Availability • Available in 13 regions • 12-month free tier for 500MB image storage • $0.10 per GB / month Docker image storage pricing • Standard AWS Data Transfer Rate
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Features and Integrations
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 Container Service Integration • EC2 instances must have the following IAM permissions: ecr:BatchCheckLayerAvailability ecr:BatchGetImage ecr:GetDownloadUrlForLayer ecr:GetAuthorizationToken IAM
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 Container Service Integration • Use the AmazonEC2ContainerServiceforEC2Role managed policy. • Task definitions must use the full registry/repository:tag naming for images.
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Docker Registry V2 API
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Docker Support Pulling an Image $docker pull <registry-uri>/image-name:tag Docker daemon 1. Fetches image manifest at tag 2. For each layer that it doesn’t have: 1. Fetch layer
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Docker Support Pulling an Image $docker pull <registry-uri>/image-name:tag Docker daemon 1. Fetches image manifest at tag 2. For each layer that it doesn’t have: 1. Fetch layer Pulling an Image $docker pull <registry-uri>/image-name:tag Docker daemon 1. GET /v2/<image-name>/manifests/<tag> 2. For each layer that it doesn’t have: 1. GET /v2/<image-name>/blobs/<digest> HTTP
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon S3 High Availability and Durability • Highly scalable object storage • Store and retrieve files from anywhere on the web • Files are stored as objects and organised in to high-level folders called buckets • Supports multi-part upload for large files and event notifications when objects change • Files up to 5TB in size
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Team Collaboration Amazon ECR team-a/web-app team-b/web-app https://205094881157.dkr.ecr.us-west-2.amazonaws.com
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Access Control instance Production/web-app Developer { “ecr:PutImage”, “ecr:InitiateLayerUpload”, “ecr:UploadLayerPart”, “ecr:CompleteLayerUpload”, “ecr:GetAuthorizationToken” } { “ecr:BatchCheckLayerAvailability”, “ecr:BatchGetImage”, “ecr:GetDownloadUrlForLayer”, “ecr:GetAuthorizationToken” }
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Encryption Amazon ECR AWS KMS Images transferred by HTTPS Automatically encrypted at rest using Amazon S3 server-side encryption
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Third-party Integrations
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Creating a registry Demo
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pushing and image with the AWS CLI Demo
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Building and Pushing and image with Code* Demo
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Task Definitions and Container Images Demo
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ECR Lifecycle Policies Demo
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Optimising Performance for ECR • Use Docker 1.10 • Use smaller base images • Understand your dependencies • Chain commands • Use closest regional endpoint
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What we’ve covered today • ECR is a fully managed Docker image registry • Compatible with Docker Registry v2 API • Integrates with Amazon EC2 Container Service • Fine grained access control • Cloudtrail integration.
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you! Questions?