What does the Docker Engine comprise of?
Docker Client and Docker Server
Docker Daemon and Docker Registry
Docker Client, Docker Daemon, and Docker Registry
Docker Client, Docker Daemon, Docker Images
Which file format does Docker Compose use for defining application services?
docker-compose.yml
config.yaml
Dockerfile
compose.json
To gracefully stop a running container, which command is recommended?
docker kill
docker stop
docker halt
docker down
What is the default network type used by Docker when creating a new container?
None
Host
Bridge
Overlay
What is a Docker image essentially composed of?
A snapshot of your computer's current state
A compiled binary executable
A virtual machine image
A collection of files and configuration needed to run an application
Which of the following is NOT a benefit of using Docker?
Faster deployment times
Increased application size
Improved security through isolation
Increased resource utilization
How do you specify the Docker image to be used for a service in 'docker-compose.yml'?
from:
build:
container:
image:
What is the primary purpose of Docker Compose?
Deploying Docker containers to production servers
Defining and managing multi-container Docker applications
Building individual Docker images
Storing Docker images in a central repository
Which command is used to create and start a Docker container?
docker build
docker run
docker create
docker start
You've pulled an image named 'my-app-image'. How would you start a container from this image and give it the name 'my-app-container'?
docker run --name my-app-container my-app-image
docker run -d my-app-container my-app-image
docker run -it my-app-image -n my-app-container
docker run my-app-image my-app-container