Exam 5v0-2320 All QuestionsBrowse all questions from this exam
Question 115

An administrator needs to label and push an image into Harbor.

Which command should the administrator run first?

    Correct Answer: A

    To label and push an image into Harbor, the administrator should first tag the image using the docker tag command. This command assigns a tag to the existing image, which is essential before pushing the image to a registry. The correct command syntax is: docker tag demoapp01:14.04 <registryip:port>/demo/demoapp01:14.04. This syntax ensures that the image is properly renamed with the registry's address, making it ready for the next step of pushing it to the registry.

Discussion
obeythefistOption: A

I'll go with "A", "docker tag". When handling image pushing, this is about the only thing that gets done with docker instead of kubectl. "docker label" is not a command, so we disregard that. The syntax in the command shown in answer "A" is good syntax and will apply a label.

refridOption: A

Docs referred for answer A: https://docs.vmware.com/en/VMware-vSphere/7.0/vmware-vsphere-with-tanzu/GUID-EC76B511-8DEB-4595-9DFA-3E9567C98ECA.html