A

Admin • 833.24K Points
Coach

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

  • (A) To trigger instructions when the image is used as a base for another image
  • (B) To define the base image
  • (C) To specify the working directory
  • (D) To copy files into the container
  • Correct Answer - Option(A)
  • Views: 56
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin

The ONBUILD instruction triggers commands when the image is used as a base for another image.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.