Beginner Docker & Containers
Q29 / 100

What is the purpose of the "ENV" instruction in a Dockerfile?

Correct! Well done.

Incorrect.

The correct answer is A) To set environment variables that persist in the image and are available to the running container

A

Correct Answer

To set environment variables that persist in the image and are available to the running container

Explanation

ENV sets environment variables both during the build process and within containers started from the resulting image.

Progress
29/100