Docker General informations Flashcards

1
Q

What is Docker?

A

Docker is an open-source platform that automates the deployment, scaling, and management of applications using containerization.

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

True or False: Docker containers share the host OS kernel.

A

True

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

What is the primary benefit of using Docker?

A

The primary benefit of using Docker is the ability to package applications and their dependencies into containers, ensuring consistent environments across development, testing, and production.

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

Fill in the blank: Docker uses ______ to manage containers.

A

images

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

What command is used to create a new Docker container?

A

docker run

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

What is the difference between a container and a virtual machine?

A

Containers share the host OS and are lightweight, while virtual machines include a full OS and are more resource-intensive.

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

True or False: Docker can run on any operating system.

A

False

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

What is a Dockerfile?

A

A Dockerfile is a script containing a series of instructions on how to build a Docker image.

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

Which command lists all running Docker containers?

A

docker ps

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

What is the purpose of Docker Compose?

A

Docker Compose is used to define and run multi-container Docker applications.

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

Fill in the blank: Docker containers are ______ than virtual machines.

A

more efficient

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

What is the default storage driver used by Docker?

A

overlay2

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

True or False: Docker can be used for both development and production environments.

A

True

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

What is the command to stop a running Docker container?

A

docker stop

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

What file format is used to define a Docker image?

A

tar

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

What is a Docker registry?

A

A Docker registry is a repository for storing and distributing Docker images.

17
Q

Which command is used to pull an image from Docker Hub?

A

docker pull

18
Q

Fill in the blank: In Docker, ______ is the process of creating an image from a container.

A

committing

19
Q

What is the main advantage of containerization over traditional virtualization?

A

Containerization allows for faster start-up times and less overhead compared to traditional virtualization.

20
Q

True or False: Docker is designed to run applications in isolation from one another.

21
Q

What command is used to remove a Docker container?

22
Q

What are the two main components of Docker architecture?

A

Docker Engine and Docker Hub

23
Q

Fill in the blank: Docker containers are ______ than virtual machines.

24
Q

What command is used to build a Docker image from a Dockerfile?

A

docker build

25
True or False: Docker can only be used with Linux operating systems.
False
26
What is the purpose of the Docker CLI?
The Docker CLI (Command Line Interface) is used to interact with the Docker daemon and manage containers and images.
27
What does 'orchestration' refer to in the context of Docker?
Orchestration refers to the automated management of containerized applications, including deployment, scaling, and networking.