CompTIA Linux+ (XK0-005) — Question 86

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?

Answer options

Correct answer: C

Explanation

The correct command is 'docker image tag test test:v1', which allows the administrator to assign a new tag to the existing image. The other options are incorrect; 'docker image save' is used to save an image to a tar file, 'docker image build' is for creating a new image, and 'docker image version' is not a valid Docker command.