What does the '-d' flag do when running a Docker container?
Displays the container's logs in the terminal.
Runs the container in detached mode (background).
Downloads the latest image from the repository.
Deletes the container after it stops.
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?
Macvlan
Overlay
Bridge
Host
Which command lists all Docker images present on your system?
docker image ls
docker images
docker show images
docker list images
Which instruction in a Dockerfile sets the working directory inside the image during the build process?
ENV
RUN
WORKDIR
COPY
What command initiates the building of a Docker image from a Dockerfile?
docker build
docker make
docker create
docker compile
What is the primary purpose of Docker Compose?
Building individual Docker images
Defining and managing multi-container Docker applications
Deploying Docker containers to production servers
Storing Docker images in a central repository
What is the function of the Docker Client?
It provides a user interface for interacting with the Docker daemon
It manages the Docker daemon on a remote host
It defines the application and its dependencies in a Dockerfile
It stores and distributes Docker images
You want a container to have NO network access at all. Which Docker networking mode should you use?
None
Isolate
When should you consider using the 'host' network mode for a Docker container?
When you want to limit the container's network access for security reasons
When you need to run a network monitoring tool inside the container
When you want to connect the container to a specific VLAN on the host
When you need to expose multiple ports from the container
Which component of Docker's architecture is responsible for building and storing Docker images?
Docker Host
Docker Client
Docker Registry
Docker Container