A

Admin • 828.03K Points
Coach

Q. What does the `build` key do in docker-compose.yml?

  • (A) Specifies ports to expose
  • (B) Creates volumes
  • (C) Builds a Docker image from a specified context
  • (D) Defines service dependencies

Explanation by: Admin
The `build` key is used to build an image from a Dockerfile within a specified context.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.