5V0-23.20 · Question #55
What is the correct process to store images in a project on the Registry Service?
The correct answer is B. Use the docker push command. https://docs.docker.com/docker-hub/repos/ - Registry Service: Developers can store and manage Docker and OCI images using Harbor. Harbor is an open-source container image registry that secures images with role-based access Login to Harbor Registry with the vSphere Docker…
Question
What is the correct process to store images in a project on the Registry Service?
Exhibit
Options
- AUse the kubect1 push command
- BUse the docker push command
- CUse the vSphere Client to upload the image the content library
- DUse the vSphere Client to upload the image to the Registry Service
How the community answered
(42 responses)- A7% (3)
- B79% (33)
- C12% (5)
- D2% (1)
Explanation
https://docs.docker.com/docker-hub/repos/ - Registry Service: Developers can store and manage Docker and OCI images using Harbor. Harbor is an open-source container image registry that secures images with role-based access Login to Harbor Registry with the vSphere Docker Credential Helper. docker-credential-vsphere login <container-registry-IP> --user [email protected] Note:While providing --user username is acceptable for login, you should use the UserPrincipalName (UPN) syntax ( --user [email protected]) to login and use docker push commands. Tag the image that you want to push to the project in Harbor Registry with same name as the namespace, where you want to use it: docker tag <image-name>[:TAG] <container-registry-IP>/<project-name>/<image-name>[:TAG] docker tag hello-world:latest 10.179.145.77/tkgs-cluster-ns/hello-world:latest docker images REPOSITORY TAG IMAGE ID CREATED SIZE 10.179.145.77/tkgs-cluster-ns/hello-world latest bf756fb1ae65 10 months ago 13.3kB hello-world latest bf756fb1ae65 10 months ago 13.3kB To push an image to a project in Harbor, run the following command:Syntax: docker push <container-registry-IP>/<namespace-name>/<image_name> docker push 10.179.145.77/tkgs-cluster-ns/hello-world:latest Expected result. The push refers to repository [10.179.145.77/tkgs-cluster-ns/hello-world] 9c27e219663c: Pushed sha256:90659bf80b44ce6be8234e6ff90a1ac34acbeb826903b02cfa0da11c82cbc042 size: 525
Topics
Community Discussion
No community discussion yet for this question.
