Free CompTIA Linux+ XK0-005 Practice Question

A systems administrator needs to create a Docker image from a Dockerfile located in the current directory. The image should include the tag 'webserver:v1'. Which of the following commands will successfully create the required Docker image?

  • docker create -t webserver:v1 .

  • docker build -t webserver:v1 .

  • docker image build --name webserver:v1

  • docker compile -t webserver:v1

This question's topic:
CompTIA Linux+ XK0-005 / 
Scripting, Containers, and Automation
Your Score:

Check or uncheck an objective to set which questions you will receive.

SAVE $45