Section 1: Dive into Docker Flashcards

1
Q

Why use docker?

A

Docker makes it easy to install software and run software without worrying about dependencies.

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

What is a docker?

A

Docker is a platform or ecosystem around creating and running containers.

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

What does docker ecosystem compose of?

A

Docker Client, Docker Server, Docker Machine, Docker Images, Docker Hub, Docker Compose.

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

What happens in an overview when you create a

docker?

A

The docker CLI fetches corresponding docker image from docker hub and creates an instance of that image (docker).

Docker has it’s own resources - Networking, Hardware, Space and Memory .

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

What is a docker image?

A

Docker image is a single file with all dependencies and config required to run a program.

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

What is the docker software composed of?

A

The docker software is composed of docker client (docker CLI) and docker server(docker daemon)

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

what happens under the hood when you run :

e.g. docker run hello-world?

A

The command is used to run a docker associated with the image file hello-world. Here hello-world is the docker image.

When this command is entered, the Docker CLI passes the control over to Docker Server, which looks for the image in local image cache.
If the image is not found in local image cache, then ‘Docker Hub’ is checked for the image.

Docker Hub is a free public docker image repository.

Local Docker Hub
===== ============
Docker Client Docker Images
|
Docker Server
|
Local Image Cache
\
The required image is not in local cache is fetched from docker hub and stored in cache, loaded into memory and the docker is created and the start command in the docker is run. .

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

How does a container structure with isolated resources look like?

A

Look at google doc.

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

How does installing docker work on windows if only linux OS has concepts of namespaces and cgroups.

A

Installing docker runs a linux virtual machine which in turn hosts containers for us. This linux virtual machine incorporates namespaces and cgroups to allocate resources to dockers.

Look at google doc for picture.

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