nerdexam
CompTIACompTIA

XK0-005 · Question #1398

XK0-005 Question #1398: Real Exam Question with Answer & Explanation

The correct answer is C: docker image tag test test:vl. The docker image tag test test:v1 command can be used to assign the v1 version to the image called test. This command creates a new tag for the existing image, without changing the original image. The docker image save test test:v1 command would save the image to a file, not assi

Scripting, Containers, and Automation

Question

A systems administrator created a new Docker image called test. After building the image, the administrator forgot to version the release. Which of the following will allow the administrator to assign the v1 version to the image?

Options

  • Adocker image save test test:v1
  • Bdocker image build test:vl
  • Cdocker image tag test test:vl
  • Ddocker image version test:v1

Explanation

The docker image tag test test:v1 command can be used to assign the v1 version to the image called test. This command creates a new tag for the existing image, without changing the original image. The docker image save test test:v1 command would save the image to a file, not assign a version. The docker image build test:vl command is invalid, as vl is not a valid version number. The docker image version test:v1 command does not exist.

Topics

#Docker#Image management#Tagging#Containers

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions