Section 18: Containers on AWS:ECS, Fargate , ECR & EKS Flashcards
1
Q
Where are docker images stored?
A
1) Docker images are stored in Docker Repositories
2) Docker Hub
- Public repository
3) Amazon ECR (Amazon Elastic Container Registry)
- Private Repository
- Public repository
2
Q
Name few Docker Containers Management on AWS
A
1) Amazon Elastic Container Service (Amazon ECS)
- Amaozn’s own containerr platform
2) Amazon Elastic Kubernetes Service (Amazon EKS)
- Amazon’s managed Kunernetes
3) AWS Fargate
- Works with ECS and with EKS
4) Amazon ECR
- Store container images
3
Q
Amazon ECS - EC2 Lanuch Type
A
- ECS = Elastic Container Service
- Launch Docker containers on AWS = Lanuch ECS Tasks on ECS Clusters
- EC2 Launch Type: you must provision & maintain the infrastructure(the EC2 instances)
- Each EC2 instance must run the ECS Agent to register in the ECS Clustser
- AWS takes care of starting/stopping containers.
4
Q
Amazon ECS - Fargate Launch Type
A
- Launch Docker containers on AWS
- You do not provision the infrastructure
- Its all Serverless!
- You just create a task definitions
- AWS just runs ECS Task for you based on the CPU/RAM you need
- To scale, just increase the number of tasks
5
Q
Amazon ECS - Data Volumes (EFS)
P200
A
- Its a file system which can be mounted onto ECS tasks.
- Works for both EC2 and Fargate launch types
- Fargate + EFS = Serverless
- Use cases: persistent multi-AZ shared storage for your containers
- Note: Amaozon S3 cannot be mounted as a file system