Define Docker.
A platform for developing, shipping, and running applications in containers.
What is a container?
A lightweight, standalone, executable package that includes everything needed to run a piece of software.
True or false: Docker images are mutable.
FALSE
Docker images are immutable; changes create new images.
Fill in the blank: A Dockerfile is a _______ for building Docker images.
script
What command is used to build a Docker image?
docker build
Define Docker Hub.
A cloud-based registry for sharing and managing Docker images.
What does the command docker run do?
It creates and starts a container from a specified image.
True or false: Volumes are used to persist data in Docker.
TRUE
Volumes allow data to persist beyond the lifecycle of a container.
What is the purpose of docker-compose?
To define and run multi-container Docker applications using a YAML file.
Fill in the blank: Docker Swarm is a _______ for managing a cluster of Docker engines.
orchestration tool
What command lists all running containers?
docker ps
Define Dockerfile instruction: FROM.
Specifies the base image to use for the Docker image.
What does the CMD instruction do in a Dockerfile?
Specifies the default command to run when a container starts.
True or false: Docker networks allow containers to communicate with each other.
TRUE
Networks provide isolation and communication between containers.
What is the purpose of the ENTRYPOINT instruction?
To configure a container to run as an executable.
Fill in the blank: Docker Compose files use _______ syntax.
YAML
What command stops a running Docker container?
docker stop
Define image layers.
Layers are the building blocks of Docker images, allowing for efficient storage and reuse.
What does docker pull do?
Downloads a Docker image from a registry to your local machine.