P

Praveen Singh • 36.81K Points
Coach

Q. What is the purpose of the ENV instruction in a Dockerfile?

  • (A) To set environment variables
  • (B) To define the base image
  • (C) To specify the working directory
  • (D) To copy files into the container
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category Docker

Explanation by: Praveen Singh
The ENV instruction sets environment variables inside the container.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics