Which component of the Docker architecture is responsible for building and running Docker containers?
Docker Client
Docker Daemon
Docker Hub
Docker Server
How would you build or rebuild services without starting them in Docker Compose?
docker-compose create --build
docker-compose up --build
docker-compose start --build
docker-compose build
What is the role of the Docker Client in the Docker architecture?
It manages the Docker images and containers.
It stores and distributes Docker images.
It provides a user interface for interacting with the Docker Daemon.
It builds and runs the Docker containers.
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.
What is a Docker image?
A command-line tool for managing Docker containers
A template for creating Docker containers
A running instance of a container
A repository for storing Docker containers
You want to list all Docker images that are currently present on your system. What command would you use?
docker show images
docker ps -a
docker images
docker list
What is the core functionality of Docker?
Automating software deployments
Compiling code into executable programs
Building and running applications in isolated environments
Managing virtual machines
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 want to limit the container's network access for security reasons
When you need to expose multiple ports from the container
When you want to connect the container to a specific VLAN on the host
How do you specify the Docker image to be used for a service in 'docker-compose.yml'?
container:
from:
image:
build:
What does the '-t' flag do when used with the 'docker build' command?
Sets a tag for the built image
Enables verbose output during the build process
Defines the target platform for the image
Specifies the Dockerfile to use