Q. Which command is used to build a Docker image from a Dockerfile?
β
Correct Answer: (A)
docker build -t image_name .
Explanation: 'docker build -t image_name .' builds a Docker image from a Dockerfile located in the current directory.