nerdexam
Docker

DCA · Question #134

Is this statement correct? Solution: A Dockerfile provides instructions for building a Docker image

The correct answer is B. No. A Dockerfile contains the instructions for building an image, but the actual building process is performed by the Docker daemon using the Dockerfile as input.

Submitted by tom_us· Apr 18, 2026Image Creation, Management, and Registry

Question

Is this statement correct? Solution: A Dockerfile provides instructions for building a Docker image

Options

  • AYes
  • BNo

How the community answered

(25 responses)
  • A
    12% (3)
  • B
    88% (22)

Why each option

A Dockerfile contains the instructions for building an image, but the actual building process is performed by the Docker daemon using the Dockerfile as input.

AYes

While a Dockerfile is essential for image creation, it acts as a blueprint or script; the actual image construction is a process carried out by the Docker engine based on the Dockerfile's instructions.

BNoCorrect

A Dockerfile provides a set of instructions (e.g., FROM, RUN, COPY) that define the steps to create a Docker image. However, the Dockerfile itself does not 'build' the image; rather, the `docker build` command executed by the Docker daemon interprets these instructions to construct the image.

Concept tested: Dockerfile purpose and Docker image building

Source: https://docs.docker.com/reference/dockerfile/

Topics

#Dockerfile#Docker Image#Image Building

Community Discussion

No community discussion yet for this question.

Full DCA Practice