NEW
Font size
WorksheetsDocker Concepts
Total questions: 10
Worksheet time: 5mins
What is Docker Compose used for?
Docker Compose is used to deploy applications on Kubernetes.
Docker Compose is used to define and run multi-container Docker applications.
Docker Compose is used to manage single-container Docker applications.
Docker Compose is used to monitor Docker containers.
Name one Docker command used to list all running containers.
docker ps
docker containers
docker list
docker ls
What are Docker images?
Docker images are virtual machines that require a hypervisor to run.
Docker images are lightweight, standalone, executable packages that contain everything needed to run a piece of software.
Docker images are only used for storing data, not for running software.
Docker images are large, heavy files that require a lot of storage space.
How are Docker containers different from virtual machines?
Docker containers and virtual machines both require their own OS and resources.
Docker containers are heavier and require more resources than virtual machines.
Docker containers and virtual machines have the same level of isolation and resource usage.
Docker containers are lightweight and share the host OS kernel, while virtual machines have their own OS and require more resources.
What is the purpose of Docker volumes?
The purpose of Docker volumes is to persist data generated by Docker containers.
The purpose of Docker volumes is to manage Docker containers.
The purpose of Docker volumes is to store Docker images.
The purpose of Docker volumes is to improve Docker network performance.
Which Docker command is used to build an image from a Dockerfile?
docker start
docker run
docker create
docker build
How can you remove a Docker container?
docker delete [container ID or name]
docker remove [container ID or name]
docker erase [container ID or name]
docker rm [container ID or name]
What is the purpose of the 'docker run' command?
To create and run a new container from a Docker image.
To remove a Docker container.
To build a Docker image.
To stop a running container.
How can you specify a volume when running a Docker container?
-p or --port flag
-s or --storage flag
-m or --mount flag
-v or --volume flag
What is the purpose of the 'docker stop' command?
To stop running containers
To pause running containers
To start running containers
To delete running containers
