Professional Documents
Culture Documents
© 2020,
© 2020,
Amazon
Amazon
WebWeb
Services,
Services,
Inc. Inc.
or its
orAffiliates.
its Affiliates. All rights reserved. Amazon Confidential
Why are companies
adopting containers?
• Accelerate software development
© 2020,
© 2020,
Amazon
Amazon
WebWeb
Services,
Services,
Inc. Inc.
or its
orAffiliates.
its Affiliates. All rights reserved. Amazon Confidential
Why are companies
adopting containers?
• Accelerate software development
• Build modern applications
© 2020,
© 2020,
Amazon
Amazon
WebWeb
Services,
Services,
Inc. Inc.
or its
orAffiliates.
its Affiliates. All rights reserved. Amazon Confidential
Why are companies
adopting containers?
• Accelerate software development
• Build modern applications
• Automate operations at web scale
© 2020,
© 2020,
Amazon
Amazon
WebWeb
Services,
Services,
Inc. Inc.
or its
orAffiliates.
its Affiliates. All rights reserved. Amazon Confidential
© 2020,
© 2020,
Amazon
Amazon
WebWeb
Services,
Services,
Inc. Inc.
or its
orAffiliates.
its Affiliates. All rights reserved. Amazon Confidential
Application environment components
Runtime Code
Engine
Dependencies Configuration
Runtime Engine
Dependencies
Code
Docker
host
Sample commands: Docker registry
Container 1
Container 2
docker build – Build image from Dockerfile Container n
docker images – List images on Docker host Ubuntu image
docker run – Run an image Nginx image
Docker
docker ps – List running containers hub Custom image
© 2020,
© 2019, Amazon
Amazon Web Services,
Web Services, Inc.
Inc. or its or its Affiliates.
Affiliates. All rights reserved.
Containers vs VMs
Containers Virtual Machines
- Using Linux primitives for - Virtualisation or emulate
isolation hardware components
- Share Linux Kernel - Completely separate kernels
- Fast starts, minimal overhead (maybe not Linux)
- Flexible isolation - Slower starts, must boot kernel
and set-up hardware.
Container Container VM Guest VM Guest
Hardware Hardware
• … unshare
• … /sys/fs/cgroup/memory
• … capsh
• … Secomp
• … Linux security modules
• … Union file systems
W
Read only image that is used as a
rit
ab
template to launch a container.
ad
le
Container
d
N
GI
N
ad
Start from base images that have
X
Image
d
References
n
your dependencies, add your
od
parent
ej
image
U
custom code. Image
s
bu
nt
u
Base image
Dockerfile for easy,
reproducible builds. bootfs
kernel
Runs reliably everywhere Run different apps simultaneously Better resource utilization
AWS Region
VPC
Monitoring:
CloudWatch & X-Ray
CodeCommit
Repository
DEV
MAIN
Code Push
S3 Bucket
Cloud9
IDE CodePipeline:
.......... CICD Pipeline
CodeBuild Deploy to Manual Swap ALB
Green Env Approval Target-Groups
Developers
© 2020, Amazon Web Services, Inc. or its Affiliates.
Demo of launching a container
© 2019,
2020, Amazon Web Services, Inc. or its Affiliates.
Managing one containers is pretty easy
Amazon Elastic
Management Amazon Elastic
Container Service
Deployment, Scheduling, Container Service
for Kubernetes
Scaling & Management of
containerized applications