You want to list all Docker images that are currently present on your system. What command would you use?
docker list
docker images
docker show images
docker ps -a
What does the Docker Engine comprise of?
Docker Client, Docker Daemon, and Docker Registry
Docker Client and Docker Server
Docker Daemon and Docker Registry
Docker Client, Docker Daemon, Docker Images
Which Dockerfile instruction is used to define the base image for a new Docker image?
RUN
COPY
FROM
WORKDIR
Which Docker network driver allows a container to share the host's network stack, effectively making it appear as if the container's processes are running directly on the host?
Bridge
Overlay
Macvlan
Host
Which file format does Docker Compose use for defining application services?
Dockerfile
docker-compose.yml
compose.json
config.yaml
Which instruction in a Dockerfile sets the working directory inside the image during the build process?
ENV
What is the primary function of the Docker Daemon (dockerd)?
Providing a user interface for Docker
Pushing images to a registry
Building Docker images
Managing Docker images and containers
What's the purpose of the -d flag when running a Docker container?
-d
Disable networking for the container.
Display detailed logs from the container.
Delete the container automatically after it exits.
Run the container in detached mode (background).
What is the command to gracefully stop a running Docker container?
docker stop <container_id>
docker down <container_id>
docker kill <container_id>
docker halt <container_id>
What is the purpose of the 'ports:' section in a Docker Compose service definition?
Map ports from the container to the host machine
Specify the network to which the service connects
Mount volumes from the host machine to the container
Define environment variables for the service