A

Admin • 832.27K Points
Coach

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

  • (A) To specify the base image
  • (B) To define the default command to run in the container
  • (C) To set environment variables
  • (D) To copy files into the container
  • Correct Answer - Option(B)
  • Views: 32
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin

The CMD instruction specifies the default command to run when the container starts.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.