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 compile -t webserver:v1
docker build -t webserver:v1 .
docker image build --name webserver:v1
docker create -t webserver:v1 .