A

Admin • 833.24K Points
Coach

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

  • (A) docker build -t image_name .
  • (B) docker create image_name
  • (C) docker run -d image_name
  • (D) docker deploy image_name
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin

'docker build -t image_name .' builds a Docker image from a Dockerfile located in the current directory.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.