What is a Docker image essentially composed of?
A compiled binary executable
A virtual machine image
A collection of files and configuration needed to run an application
A snapshot of your computer's current state
What is the primary benefit of using a user-defined bridge network over the default bridge network in Docker?
Reduced resource consumption by sharing network resources
Improved performance by using a faster networking protocol
Simplified management by automatically connecting all containers to a single network
Increased security by isolating containers on different networks
Which component of the Docker architecture is responsible for building and running Docker containers?
Docker Daemon
Docker Hub
Docker Client
Docker Server
What port does the Docker daemon typically listen on?
8080
80
2377
443
You've pulled an image named 'my-app-image'. How would you start a container from this image and give it the name 'my-app-container'?
docker run --name my-app-container my-app-image
docker run -it my-app-image -n my-app-container
docker run my-app-image my-app-container
docker run -d my-app-container my-app-image
What does the Docker Engine comprise of?
Docker Client, Docker Daemon, and Docker Registry
Docker Client, Docker Daemon, Docker Images
Docker Client and Docker Server
Docker Daemon and Docker Registry
Which Dockerfile instruction is used to define the base image for a new Docker image?
WORKDIR
RUN
FROM
COPY
What is the core functionality of Docker?
Managing virtual machines
Compiling code into executable programs
Automating software deployments
Building and running applications in isolated environments
If you launch a container with '--network none' and later need to give it network access, what should you do?
You cannot change the network mode once a container is created, you must recreate it
Modify the container's configuration files to add network settings
Restart the container with the desired network mode specified
Use the 'docker network connect' command to attach the container to an existing network
When should you consider using the 'host' network mode for a Docker container?
When you need to expose multiple ports from the container
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 want to limit the container's network access for security reasons