docker Flashcards
What is Docker?
Docker is a platform that enables developers to automate the deployment of applications inside lightweight containers.
True or False: Docker containers are dependent on the host operating system.
True
What command is used to create a new Docker container?
docker run
Fill in the blank: A __________ is a lightweight, standalone, executable package that includes everything needed to run a piece of software.
container
Which command lists all running Docker containers?
docker ps
What file is used to define a Docker image?
Dockerfile
True or False: Docker images are immutable.
True
What is the purpose of Docker Compose?
Docker Compose is used to define and run multi-container Docker applications.
What command is used to stop a running Docker container?
docker stop
Fill in the blank: Docker uses __________ to manage the lifecycle of containers.
images
What is the default network driver used by Docker?
bridge
Which command is used to remove a Docker image?
docker rmi
True or False: A Docker container can run multiple applications.
False
What command is used to build a Docker image from a Dockerfile?
docker build
What is the purpose of the ‘docker exec’ command?
It allows you to run commands in a running container.
Fill in the blank: Docker containers run in __________ environments.
isolated
What is a Docker registry?
A Docker registry is a storage and distribution system for Docker images.
True or False: Docker Swarm is used for container orchestration.
True
What command would you use to list all Docker images on your system?
docker images
What is the purpose of the ‘docker pull’ command?
It downloads a Docker image from a registry.
Fill in the blank: The __________ command is used to remove stopped containers.
docker rm
What is the main difference between a Docker container and a virtual machine?
Containers share the host OS kernel, while VMs have their own OS.
What is a Docker volume?
A Docker volume is a persistent storage mechanism for Docker containers.
True or False: Docker can run on Windows, Mac, and Linux.
True