Kubernetes and Cloud Native Associate (KCNA) — Question 93

What is a Dockerfile?

Answer options

Correct answer: C

Explanation

The correct answer is C, as a Dockerfile is indeed a text file that specifies the instructions for building a Docker image. Option A describes a bash script, which is not the same as a Dockerfile. Option B refers to configuration related to image registries, which does not define the contents of a Dockerfile. Option D discusses an image layer from a running container, which is unrelated to the purpose of a Dockerfile.