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
Host
Macvlan
Overlay
Which of the following is NOT a benefit of using Docker?
Improved security through isolation
Increased resource utilization
Faster deployment times
Increased application size
Which instruction in a Dockerfile sets the working directory inside the image during the build process?
RUN
WORKDIR
COPY
ENV
What does the '-d' flag do when running a Docker container?
Deletes the container after it stops.
Downloads the latest image from the repository.
Runs the container in detached mode (background).
Displays the container's logs in the terminal.
How would you build or rebuild services without starting them in Docker Compose?
docker-compose start --build
docker-compose create --build
docker-compose build
docker-compose up --build
What is the primary benefit of using a user-defined bridge network over the default bridge network in Docker?
Improved performance by using a faster networking protocol
Simplified management by automatically connecting all containers to a single network
Reduced resource consumption by sharing network resources
Increased security by isolating containers on different networks
In a 'docker-compose.yml' file, what is the keyword used to define a service?
image
service
app
container
Which component of Docker's architecture is responsible for building and storing Docker images?
Docker Client
Docker Container
Docker Host
Docker Registry
Which of the following statements is TRUE about Docker containers?
They cannot interact with the host system.
They are slower than virtual machines.
They share the host operating system kernel.
They have their own dedicated operating system.
Which Dockerfile instruction is used to define the base image for a new Docker image?
FROM