A

Admin • 828.70K Points
Coach

Q. What is the role of Docker's 'CMD' instruction in a Dockerfile?

  • (A) To set the default command to be executed when a container starts
  • (B) To specify the environment variables
  • (C) To specify the base image for the container
  • (D) To expose container ports
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin
'CMD' specifies the default command to be executed when the container starts.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.