VMware Carbon Black Cloud Enterprise EDR (2020) — Question 99
An administrator needs to label and push an image into Harbor.
Which command should the administrator run first?
Answer options
- A. docker tag demoapp01:14.04/demo/demoapp01:14.04
- B. kubectl tag demoapp01:14.04/demo/demoapp01:14.04
- C. kubectl label demoapp01:14.04/demo/demoapp01:14.04
- D. docker label demoapp01:14.04/demo/demoapp01:14.04
Correct answer: A
Explanation
The correct answer is A because the 'docker tag' command is used to create a tag for an image before pushing it to a registry like Harbor. The other options are incorrect as 'kubectl' is used for managing Kubernetes resources and does not apply for tagging Docker images.