Which Docker Compose command is used to start services in the background?
docker-compose run
docker-compose up
docker-compose up -d
docker-compose start
What is the primary purpose of Docker Compose?
Deploying Docker containers to production servers
Building individual Docker images
Defining and managing multi-container Docker applications
Storing Docker images in a central repository
Which command lists all Docker images present on your system?
docker images
docker list images
docker show images
docker image ls
Which Docker network driver allows a container to share the host's network stack, effectively making it appear as if the container's processes are running directly on the host?
Bridge
Overlay
Host
Macvlan
What is the role of the Docker Client in the Docker architecture?
It manages the Docker images and containers.
It builds and runs the Docker containers.
It provides a user interface for interacting with the Docker Daemon.
It stores and distributes Docker images.
Which component of the Docker architecture is responsible for building and running Docker containers?
Docker Hub
Docker Client
Docker Server
Docker Daemon
Which of the following is NOT a benefit of using Docker?
Faster deployment times
Increased application size
Increased resource utilization
Improved security through isolation
Which file format does Docker Compose use for defining application services?
compose.json
config.yaml
docker-compose.yml
Dockerfile
What's the purpose of the -d flag when running a Docker container?
-d
Disable networking for the container.
Delete the container automatically after it exits.
Display detailed logs from the container.
Run the container in detached mode (background).
What does the COPY instruction do in a Dockerfile?
COPY
Exposes a port from the container to the host.
Sets the working directory for subsequent instructions.
Executes a command within the Docker image.
Copies files or directories from the host machine to the image.