V

Vikash Gupta • 33.56K Points
Instructor I

Q. What is the purpose of Docker's 'ENTRYPOINT' instruction in a Dockerfile?

  • (A) To define the default command to run when a container starts
  • (B) To specify the image to use for the container
  • (C) To set environment variables for the container
  • (D) To define the working directory for the container
  • Correct Answer - Option(A)
  • Views: 27
  • Filed under category Docker

Explanation by: Vikash Gupta
'ENTRYPOINT' defines the default command that gets executed when a container starts.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics