When should you consider using the 'host' network mode for a Docker container?
When you need to run a network monitoring tool inside the container
When you need to expose multiple ports from 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
Where can you find pre-built Docker images for common software?
Microsoft Azure Blob Storage
GitHub repositories
Amazon S3
Docker Hub
How do Docker containers differ from virtual machines?
Containers share the host kernel, while VMs have their own.
Containers cannot run on the cloud.
Containers require more resources than VMs.
Containers are used only for development, while VMs are for production.
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
Host
Bridge
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 stores and distributes Docker images.
It provides a user interface for interacting with the Docker Daemon.
What is the purpose of Dockerfile in Docker?
To store container logs
To manage Docker networks
To define the steps for building a Docker image
To run a Docker container
If you launch a container with '--network none' and later need to give it network access, what should you do?
Use the 'docker network connect' command to attach the container to an existing network
You cannot change the network mode once a container is created, you must recreate it
Restart the container with the desired network mode specified
Modify the container's configuration files to add network settings
Which command will start a new container from an image?
docker exec
docker start
docker run
docker create
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
What is a Docker image essentially composed of?
A virtual machine image
A compiled binary executable
A collection of files and configuration needed to run an application
A snapshot of your computer's current state