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
πŸ’¬ Discuss
βœ… Correct Answer: (A) To define the default command to run when a container starts
Explanation: 'ENTRYPOINT' defines the default command that gets executed when a container starts.
Explanation by: Vikash Gupta
'ENTRYPOINT' defines the default command that gets executed when a container starts.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
199
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
81%
Success Rate