DevOps and Containers Flashcards

1
Q

What are containers?

A

Containers are a method of operating system virtualization that enables you to run an application and its dependencies in resource-isolated processes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do containers work?

A

Build a container image
With containers, you can package your code and its dependencies into a container.

Automate testing and deployment
Because you are using an image that can be thought of as a template, you can standardized your code. When you make changes, think of them as consistent building blocks.

Run anywhere
Containers package your code with the configuration files and dependencies it needs to consistently run in any environment. Containers also provide process isolation that lets you granularly set CPU and memory utilization for better use of compute resources.

Scale quickly
Each container runs as a separate process that shares the resources of the underlying operating system. This enables containers to start and stop quickly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Docker?

A

Docker is a software platform that you can use to build, test, and deploy applications quickly. Docker packages software into standardized units called containers that have everything the software needs to run, including libraries, system tools, code, and runtime. Using Docker, you can quickly deploy and scale applications into any environment and know that your code will run. By using containers, you decouple applications from operating systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Dockerfile?

A

Dockerfile is the file that is used to build the Docker image. It contains all the commands you would normally run manually in to build a Docker image.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an image?

A

A Docker image is the file for Docker containers at runtime. It is an ordered collection of root filesystem changes and the corresponding parameters for use within a container runtime.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a Docker Registry?

A

A Docker Registry stores Docker images, which can be public or private.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a Docker container?

A

A Docker container is a runnable instance of an image.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a Docker Host?

A

In this context, host is the machine (physical or virtual) that is running the host OS on which the Docker containers are run.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Versions in Docker

A
  • simplifies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the challenges?

A
Managing a single container is easy
Managing a fleet is difficult
Solution: 
- Management - 12ECS, 34EKS
  - Deployment, scheduling, scaling and management of containerized applications
- Hosting - 13EC2, 24AWS Fargate
- Image registry - 1ECR
How well did you know this?
1
Not at all
2
3
4
5
Perfectly