What command initiates the building of a Docker image from a Dockerfile?
docker build
docker make
docker compile
docker create
How would you build or rebuild services without starting them in Docker Compose?
docker-compose build
docker-compose start --build
docker-compose create --build
docker-compose up --build
How do you list all running Docker containers?
docker ps -a
docker images
docker ps
docker run -it
What does the Docker Engine comprise of?
Docker Client and Docker Server
Docker Client, Docker Daemon, Docker Images
Docker Daemon and Docker Registry
Docker Client, Docker Daemon, and Docker Registry
What is the primary function of the Docker Daemon (dockerd)?
Managing Docker images and containers
Providing a user interface for Docker
Pushing images to a registry
Building Docker images
Which Dockerfile instruction is used to define the base image for a new Docker image?
WORKDIR
RUN
FROM
COPY
How do you specify a command to be executed when a Docker container starts using a Dockerfile?
ENTRYPOINT
ENV
CMD
How do Docker containers differ from virtual machines?
Containers cannot run on the cloud.
Containers share the host kernel, while VMs have their own.
Containers are used only for development, while VMs are for production.
Containers require more resources than VMs.
What port does the Docker daemon typically listen on?
443
8080
80
2377
You want to list all Docker images that are currently present on your system. What command would you use?
docker list
docker show images