πŸ“Š Docker
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) To define the user for running commands

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

Explanation by: Vikash Gupta
The USER instruction specifies the user or UID for running commands in the container.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
131
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
85%
Success Rate