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

  • (A) To define environment variables
  • (B) To specify the base image
  • (C) To expose ports
  • (D) To start a container
πŸ’¬ Discuss
βœ… Correct Answer: (B) To specify the base image
Explanation: `FROM` sets the base image for the Docker image being built.
Explanation by: Mr. Dubey
`FROM` sets the base image for the Docker image being built.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
85
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate