A

Admin • 833.24K Points
Coach

Q. Which command is used to build a Docker image from a Dockerfile?

  • (A) docker create
  • (B) docker build
  • (C) docker run
  • (D) docker compose
  • Correct Answer - Option(B)
  • Views: 46
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin

The 'docker build' command is used to build a Docker image from a Dockerfile and a context (usually the current directory).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.