ECS, Fargate, ECR, EKS Flashcards
What is docker?
A software development platform used to deploy apps.
Apps are packaged in containers that can run in any OS.
Apps run the same way no matter where they are run.
What are Docker use cases?
Any microservices architecture.
Lift and shift apps from onpremises to the cloud
How do you run docker? What can you run in it?
You have a server, in which you run a docker agent.
From there you can start docker containers. For example your first docker container may contain a java application. And you could have multiple containers of the same java application.
You could run multiple different apps in different containers in different languages. And you can even run databases in containers.
What is ECR?
Amazon Elastic Container Registry. A private repository to store your Docker images in aws.
There is a public repository option in ECR. The ECR Public Gallery
What is a docker file?
A text file you make with the instructions on how to “build” a docker image. This defines how a docker container will look.
What is a docker image?
A docker image is a container image. It’s an executable file that we use to create containers in a certain way.
It contains all the code, libraries, files and dependencies for your container app.
What is a push? What is a pull?
A push is when you upload a docker image to a docker repository, like dockerhub or ECR.
A pull is when you get a docker image from a repository like dockerhub or ECR, and you run it to make containers.
What is to run a docker image?
You run a docker image like an executable to get one or more docker containers from it.
What is docker build?
The command for building a docker image from a docker file.
What is ECS?
Amazons’ own container platform
What is EKS?
Amazons’ managed version of Kubernetes
What is Fargate?
Amazon’s serverless container platform.
Fargate works with both ECS and EKS
How do you call launching containers on aws?
Launching an ECS task or service on an ECS cluster
What are the EC2 launch types?
Fargate, EC2 and External.
It’s what the ECS Cluster is launched with.
In an EC2 launch type for example, the ECS cluster is made of EC2 instances.
Who is an ECS cluster managed by in the EC2 launch type?
You have to manage the EC2 instances that make up the ECS cluster.
What is the ECS agent?
The software the EC2 instances that make up the ECS cluster must run.
The ECS agent register the instances in the ECS service and the ECS cluster.
What is fargate launch type?
Fargate is a launch type for ECS clusters, but it’s serverless and aws managed.
On fargate you just create task definitions. (Task definitions are the equivalent to docker files).