Q. What is the purpose of the 'build' section in a Docker Compose file?

  • (A) To define how a service is built
  • (B) To specify service dependencies
  • (C) To set up networking
  • (D) To configure environment variables
πŸ’¬ Discuss
βœ… Correct Answer: (A) To define how a service is built
Explanation: The 'build' section in a Docker Compose file specifies how a service should be built from a Dockerfile.
Explanation by: Priyanka Tomar
The 'build' section in a Docker Compose file specifies how a service should be built from a Dockerfile.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
111
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Priyanka Tomar
Publisher
πŸ“ˆ
90%
Success Rate