A

Admin • 833.24K Points
Coach

Q. Which of the following Docker commands is used to build an image from a Dockerfile?

  • (A) docker create image
  • (B) docker build -t image_name .
  • (C) docker make image image_name
  • (D) docker image build -t image_name .
  • Correct Answer - Option(B)
  • Views: 33
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin

'docker build -t image_name .' is the command to build an image from a Dockerfile in the current directory.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.