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

  • (A) To add metadata to the image
  • (B) To define the base image
  • (C) To specify the working directory
  • (D) To copy files into the container
πŸ’¬ Discuss
βœ… Correct Answer: (A) To add metadata to the image
Explanation: The LABEL instruction adds metadata (key-value pairs) to the Docker image.
Explanation by: Shiva Ram
The LABEL instruction adds metadata (key-value pairs) to the Docker image.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
268
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
85%
Success Rate