Which of the following statements is TRUE about Docker containers?
They share the host operating system kernel.
They are slower than virtual machines.
They have their own dedicated operating system.
They cannot interact with the host system.
How do you list all running Docker containers?
docker images
docker ps
docker run -it
docker ps -a
What does the Docker Engine comprise of?
Docker Client, Docker Daemon, Docker Images
Docker Client, Docker Daemon, and Docker Registry
Docker Daemon and Docker Registry
Docker Client and Docker Server
Which command will start a new container from an image?
docker run
docker create
docker exec
docker start
What happens to data within a container when it is removed using 'docker rm'?
Data is preserved in the image.
Data is deleted unless persisted using volumes.
Data is automatically backed up.
Data is migrated to a temporary location.
In a 'docker-compose.yml' file, what is the keyword used to define a service?
service
image
container
app
You want to see a list of all running containers. Which command do you use?
How do Docker containers differ from virtual machines?
Containers cannot run on the cloud.
Containers are used only for development, while VMs are for production.
Containers require more resources than VMs.
Containers share the host kernel, while VMs have their own.
What is the primary purpose of Docker Compose?
Storing Docker images in a central repository
Deploying Docker containers to production servers
Building individual Docker images
Defining and managing multi-container Docker applications
When should you consider using the 'host' network mode for a Docker container?
When you want to connect the container to a specific VLAN on the host
When you need to expose multiple ports from the container
When you want to limit the container's network access for security reasons
When you need to run a network monitoring tool inside the container