CompTIA
XK0-005 · Question #10570
A new application container was built with an incorrect version number. Which of the following commands should be used to rename the image to match the correct version 2.1.2?
The correct answer is A. docker tag comptia/app:2.1.1 comptia/app:2.1.2. The best command to use to rename the image to match the correct version 2.1.2 is A. docker tag comptia/app:2.1.1 comptia/app:2.1.2. This command will create a new tag for the existing image with the new version number, without changing the image content or ID.
Scripting, Containers, and Automation
Question
A new application container was built with an incorrect version number. Which of the following commands should be used to rename the image to match the correct version 2.1.2?
Options
- Adocker tag comptia/app:2.1.1 comptia/app:2.1.2
- Bdocker push comptia/app:2.1.1 comptia/app:2.1.2
- Cdocker rmi comptia/app:2.1.1 comptia/app:2.1.2
- Ddocker update comptia/app:2.1.1 comptia/app:2.1.2
How the community answered
(34 responses)- A91% (31)
- B3% (1)
- D6% (2)
Explanation
The best command to use to rename the image to match the correct version 2.1.2 is A. docker tag comptia/app:2.1.1 comptia/app:2.1.2. This command will create a new tag for the existing image with the new version number, without changing the image content or ID.
Topics
#Docker#Container Images#Image Tagging#Command Line
Community Discussion
No community discussion yet for this question.