A

Admin • 833.24K Points
Coach

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

  • (A) To define the user for running commands
  • (B) To set environment variables
  • (C) To specify the working directory
  • (D) To copy files into the container
  • Correct Answer - Option(A)
  • Views: 33
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin

The USER instruction specifies the user or UID for running commands in the container.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.