What is the command to gracefully stop a running Docker container?
docker kill <container_id>
docker down <container_id>
docker halt <container_id>
docker stop <container_id>
What is a potential drawback of using the 'host' network mode in Docker?
Limited network performance due to sharing the host's network bandwidth
Increased network overhead due to network address translation (NAT)
Increased complexity in configuring network settings for the container
Reduced security as the container can access all ports and resources on the host
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
Macvlan
Host
Where can you find pre-built Docker images for common software?
GitHub repositories
Docker Hub
Amazon S3
Microsoft Azure Blob Storage
What is a Docker image essentially composed of?
A compiled binary executable
A snapshot of your computer's current state
A collection of files and configuration needed to run an application
A virtual machine image
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
Which Docker Compose command is used to start services in the background?
docker-compose start
docker-compose up
docker-compose run
docker-compose up -d
You want a container to have NO network access at all. Which Docker networking mode should you use?
Isolate
None
Which command will start a new container from an image?
docker exec
docker create
docker start
docker run
What is the role of the Docker Client in the Docker architecture?
It stores and distributes Docker images.
It builds and runs the Docker containers.
It manages the Docker images and containers.
It provides a user interface for interacting with the Docker Daemon.