Q. Which of the following Docker commands is used to build an image from a Dockerfile?
β
Correct Answer: (B)
docker build -t image_name .
Explanation: 'docker build -t image_name .' is the command to build an image from a Dockerfile in the current directory.