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

  • (A) To specify the default shell for the container
  • (B) To define the base image
  • (C) To specify the working directory
  • (D) To copy files into the container
πŸ’¬ Discuss
βœ… Correct Answer: (A) To specify the default shell for the container
Explanation: The SHELL instruction specifies the default shell for the container.
Explanation by: Priyanka Tomar
The SHELL instruction specifies the default shell for the container.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
155
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Priyanka Tomar
Publisher
πŸ“ˆ
97%
Success Rate