A

Admin • 36.96K Points
Coach

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

  • (A) To set the working directory for subsequent instructions
  • (B) To define the user for running commands
  • (C) To specify the base image
  • (D) To copy files into the container
  • Correct Answer - Option(A)
  • Views: 14
  • Filed under category Docker

Explanation by: Admin
The WORKDIR instruction sets the working directory for subsequent instructions in the Dockerfile.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics