Containers & EC2 Flashcards
Docker Files
used to build images
each step in Docker files creates a read only file system layers
Docker Image
Images contain read-only layers charges are layered onto the image using a differential architecture
Images are created from a base image or scratch
What the biggest benefit of using Docker ?
you can use a Docker image to create as many containers as you want isolating the ops in the read only layers and having Read Write layer on top that differentiates them.
Docker Host
can run many containers based on 1 or more images
Docker Containers
running instance of a docker image has separate read/write layer
Container Registry e.g. Docker Hub
where you can upload your docker image to be used by a docker host
Elastic container Services
EC2 product which allows you to use containers running on infrastructure which AWS fully mange or partially mange
ECS Container Definition
Just a pointer to where the container is stored and what ports are exposed
image and ports
ECS Task Definition
store the resources used by the task like CPU, memory, networking and compatibility
Security(Task Role), container(s), and resources
ECS Task Role
IAM Role which allows your application to interact with AWS resources
The IAM role which the Task assumes
ECS Service Definition
How we want a task to scale
how many copies, HA, and restarts
ECS Cluster
Aws container register like Docker Hub
What are the ECS cluster Types ?
Ec2 mode and Faregate mode
EC2 Mode
EC2 mode deploys EC2 instances into your AWS account which can be used to deploy tasks and services.
With EC2 mode you pay for the EC2 instances regardless of container usage
Fargate Mode
Fargate mode uses shared AWS infrastructure, and ENI’s which are injected into your VPC
You pay only for container resources used while they are running.