S

Shiva Ram • 30.44K Points
Instructor I

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

Explanation by: Shiva Ram
The LABEL instruction adds metadata (key-value pairs) to the Docker image.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.