--- hide: - toc --- # Admin quickly uses the registry to serve the platform In DCE 5.0, there are two registry management methods: Managed Harbor (self-built Harbor on DCE) and Integrated Registry (integrating external Harbor or Docker Registry). - [Managed Harbor](../managed/intro.md)(suggestion) - [Integrated Registry](../integrate/integrate-admin.md) Harbor is mainly promoted as a registry in DCE 5.0 to provide image services. ## Sharing public images Assuming that you have created a managed Harbor or connected to an external harbor, follow the steps below to share a public image with all namespaces: 1. Create a managed Harbor. 2. Create a registry space and set it to public. 3. Push the image to the registry space. 4. Deploy the application. ```mermaid graph TB create[Create managed Harbor] --> setpublic[Create a registry space and set it to public] --> push[Push image] --> deploy[Deploy application] classDef plain fill:#ddd,stroke:#fff,stroke-width:1px,color:#000; classDef k8s fill:#326ce5,stroke:#fff,stroke-width:1px,color:#fff; classDef cluster fill:#fff,stroke:#bbb,stroke-width:1px,color:#326ce5; class create,setpublic,push,deploy cluster; click create "https://docs.daocloud.io/en/kangaroo/hosted/" click setpublic "https://docs.daocloud.io/en/kangaroo/create-registry/" click push "https://docs.daocloud.io/en/kangaroo/quickstart/push/" click deploy "https://docs.daocloud.io/en/kpanda/user-guide/workloads/create-deployment/" ``` Expected Result: When all users on the platform deploy applications in the namespace, they can select images in the public registry space for deployment through the image selector. ![selecting images](https://docs.daocloud.io/daocloud-docs-images/docs/en/docs/kangaroo/images/admin01.png) ![images selected](https://docs.daocloud.io/daocloud-docs-images/docs/en/docs/kangaroo/images/admin02.png) ## Sharing private images Assuming that you have created a managed Harbor or connected to an external harbor, follow the steps below to share a private image with the namespace under the specified workspace (tenant): The prerequisites are: 1. Created workspace 2. Namespace bound workspace The operation steps are: 1. Create a managed Harbor. 2. Create a registry space and set it to public. 3. Push the image to the registry space. 4. Bind the registry space to the workspace. 5. Deploy the application. ```mermaid graph TB create[Create managed Harbor] --> setpublic[Create a registry space and set it to public] --> push[Push image] --> bind[Registry space binding workspace] --> deploy[Deploy application] classDef plain fill:#ddd,stroke:#fff,stroke-width:1px,color:#000; classDef k8s fill:#326ce5,stroke:#fff,stroke-width:1px,color:#fff; classDef cluster fill:#fff,stroke:#bbb,stroke-width:1px,color:#326ce5; class create,setpublic,push,bind,deploy cluster; click create "https://docs.daocloud.io/en/kangaroo/hosted/" click setpublic "https://docs.daocloud.io/en/kangaroo/create-registry/" click push "https://docs.daocloud.io/en/kangaroo/quickstart/push/" click bind "https://docs.daocloud.io/en/kangaroo/bind-to-ws/" click deploy "https://docs.daocloud.io/en/kpanda/user-guide/workloads/create-deployment/" ``` Expected Result: Only when deploying applications in namespaces under this workspace, you can use the image selector to select private images under this registry space to deploy applications. ![selecting images](https://docs.daocloud.io/daocloud-docs-images/docs/en/docs/kangaroo/images/admin03.png) ![images selected](https://docs.daocloud.io/daocloud-docs-images/docs/en/docs/kangaroo/images/admin04.png) !!! tip - The connected Harbor can achieve the same effect as above. - Docker Registry itself only has public images, so after accessing, the images will be open to all namespaces.