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

  • (A) To set environment variables
  • (B) To define the base image
  • (C) To specify the working directory
  • (D) To copy files into the container
πŸ’¬ Discuss
βœ… Correct Answer: (A) To set environment variables
Explanation: The ENV instruction sets environment variables inside the container.
Explanation by: Praveen Singh
The ENV instruction sets environment variables inside the container.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
137
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
89%
Success Rate