Skip to content

Registry Synchronization

Registry synchronization refers to the process of synchronizing and updating images between two or more registries. In software development or system management, this sync method is often used to ensure that the same software or operating system images are shared among multiple servers, so as to ensure consistency and reduce workload during deployment. Typically, image content can be synchronized in real-time to other servers via registry synchronization, ensuring that images on multiple servers are up-to-date.

DCE 5.0 container registry allows users to create synchronization policies and add destination repositories.

Note

Creating sync policies and adding destination repositories require admin privileges.

Create Sync policies

  1. From the integrated or managed Harbor page, click a registry name.

    Select a registry

  2. In the left-hand navigation bar, click Sync images -> Sync policy, and then click the Create sync policy button.

    Click the button

  3. Fill in the parameters and click OK.

    Configure parameters

    Sync mode: - Push: synchronize the image to the destination registry. - Pull: synchronize the destination registry's image to the current registry. - Overwrite: specify whether to overwrite if there are resources with the same name.

    Filter: - Name: filter the resources under the current registry space by name. Leave blank or use ** to match all resources. - Tag: filter the resources under the current registry space by tag/version. Leave blank or use ** to match all resources.

    Destination registry: if not filled in, the images will be placed in the same registry space as the source registry.

  4. Return to the sync rule list, the newly created rule is enabled by default. Click the on the right-hand side to run sync, edit, disable, delete.

    More operations

Add destination registry

  1. From the integrated or managed Harbor page, click a registry name.

    Select a registry

  2. In the left-hand navigation bar, click Sync images -> Destination registry, and then click the Add destination registry button.

    Click the button

  3. Add a destination registry.

    Select

    Customize

  4. Return to the destination registry list, click the on the right-side to perform edit or delete.

Comments