Which of the following is NOT a benefit of using Docker?
Improved security through isolation
Increased application size
Faster deployment times
Increased resource utilization
What is the primary purpose of Docker Compose?
Building individual Docker images
Deploying Docker containers to production servers
Defining and managing multi-container Docker applications
Storing Docker images in a central repository
What command stops services defined in 'docker-compose.yml' and removes containers, networks, and images created by 'up'?
docker-compose kill
docker-compose stop
docker-compose down
docker-compose rm
After stopping a container, you want to remove it completely. What command should you use?
docker delete
docker remove
docker rm
docker erase
Which command will start a new container from an image?
docker create
docker run
docker start
docker exec
You want a container to have NO network access at all. Which Docker networking mode should you use?
Bridge
Isolate
None
Host
What is the command to gracefully stop a running Docker container?
docker halt <container_id>
docker kill <container_id>
docker down <container_id>
docker stop <container_id>
What is the purpose of the 'ports:' section in a Docker Compose service definition?
Specify the network to which the service connects
Map ports from the container to the host machine
Mount volumes from the host machine to the container
Define environment variables for the service
What is the key difference between Docker and a virtual machine?
Docker containers share the host OS kernel, while VMs have their own kernel
Docker provides a graphical user interface, while VMs do not
Docker is primarily used for development, while VMs are used for production
Docker is used for hardware virtualization, while VMs are used for software virtualization
What does the '-t' flag do when used with the 'docker build' command?
Sets a tag for the built image
Defines the target platform for the image
Enables verbose output during the build process
Specifies the Dockerfile to use