What is the command to gracefully stop a running Docker container?
docker kill <container_id>
docker down <container_id>
docker stop <container_id>
docker halt <container_id>
Which component of Docker's architecture is responsible for building and storing Docker images?
Docker Host
Docker Registry
Docker Client
Docker Container
Which command is used to create and start a Docker container?
docker create
docker build
docker run
docker start
What does the Docker Engine comprise of?
Docker Daemon and Docker Registry
Docker Client and Docker Server
Docker Client, Docker Daemon, Docker Images
Docker Client, Docker Daemon, and Docker Registry
What is a Docker image?
A repository for storing Docker containers
A command-line tool for managing Docker containers
A template for creating Docker containers
A running instance of a container
What is the primary purpose of Docker containers in software development?
To manage network infrastructure.
To create virtual machines.
To compile code faster.
To package and isolate applications with their dependencies.
What is a Docker image essentially composed of?
A snapshot of your computer's current state
A compiled binary executable
A virtual machine image
A collection of files and configuration needed to run an application
Which Docker Compose command is used to start services in the background?
docker-compose run
docker-compose up
docker-compose start
docker-compose up -d
What is the purpose of the 'ports:' section in a Docker Compose service definition?
Specify the network to which the service connects
Map ports from the container to the host machine
Mount volumes from the host machine to the container
Define environment variables for the service
What is the function of the Docker Client?
It defines the application and its dependencies in a Dockerfile
It manages the Docker daemon on a remote host
It stores and distributes Docker images
It provides a user interface for interacting with the Docker daemon