Which command completely removes a Docker container?
docker kill <container_id>
docker delete <container_id>
docker stop -r <container_id>
docker rm <container_id>
What is a potential drawback of using the 'host' network mode in Docker?
Reduced security as the container can access all ports and resources on the host
Increased complexity in configuring network settings for the container
Limited network performance due to sharing the host's network bandwidth
Increased network overhead due to network address translation (NAT)
How would you build or rebuild services without starting them in Docker Compose?
docker-compose up --build
docker-compose create --build
docker-compose start --build
docker-compose build
What is the role of the Docker Client in the Docker architecture?
It provides a user interface for interacting with the Docker Daemon.
It manages the Docker images and containers.
It builds and runs the Docker containers.
It stores and distributes Docker images.
What port does the Docker daemon typically listen on?
443
8080
2377
80
Which Docker Compose command is used to start services in the background?
docker-compose start
docker-compose up -d
docker-compose run
docker-compose up
What is the purpose of the 'ports:' section in a Docker Compose service definition?
Specify the network to which the service connects
Mount volumes from the host machine to the container
Map ports from the container to the host machine
Define environment variables for the service
What command initiates the building of a Docker image from a Dockerfile?
docker make
docker create
docker build
docker compile
What is a Docker image?
A running instance of a container
A template for creating Docker containers
A command-line tool for managing Docker containers
A repository for storing Docker containers
Which command is used to download a Docker image from a registry?
docker push
docker run
docker pull