πŸ“Š Docker
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) To set the working directory for subsequent instructions

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
65
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
85%
Success Rate