P

Praveen Singh • 36.81K 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

Explanation by: Praveen Singh
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.