You can migrate images from a self-managed Harbor project to a Container Registry Enterprise Edition instance. You can also customize a domain name for the Container Registry Enterprise Edition instance. This topic describes how to synchronize images from a self-managed Harbor project to a Container Registry Enterprise Edition instance.

Background information

Container Registry Enterprise Edition provides an enterprise-class secure service for managing container images and Helm charts. It provides enterprise-class security and allows you to distribute images to thousands of nodes concurrently and synchronize images across regions on a global scale. This service also allows you to create cloud-native application delivery chains to automatically deliver images globally upon source code changes in multiple scenarios. This service is suitable for enterprise customers that have high security requirements, deploy services in multiple regions, and use clusters that consist of a large number of nodes.

Step 1: Migrate backend data of the Harbor instance

  • If your Harbor instance uses Apsara File Storage NAS as the backend storage, you must migrate data from NAS to an Object Storage Service (OSS) bucket. For more information, see Migrate data from NAS to OSS.
  • Skip this step if the backend data of the Harbor instance is stored in OSS.

Step 2: Select an OSS bucket

When you create a Container Registry Enterprise Edition instance, you can select an existing OSS bucket as the backend storage of the instance.

  1. Attach a RAM role to the account and grant the RAM role the permission to manage the OSS bucket. For more information, see Use RAM to grant permissions to access custom OSS buckets.
  2. Create a Container Registry Enterprise Edition instance.
    When you create a Container Registry Enterprise Edition instance, set Instance Storage to Custom and select a bucket. For more information, see Create a Container Registry Enterprise Edition instance.

Step 3: Import images

  1. Log on to the Container Registry console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, click Instances.
  4. On the Instances page, click the required Container Registry Enterprise Edition instance.
  5. On the management page of the Container Registry Enterprise Edition instance, choose Instances > Image Import in the left-side navigation pane,
  6. On the Image Import page, click Trigger Task.
  7. In the Tips dialog box, select Confirm to import and click Confirm.
    Note On the Image Import page, find the created task and click Details in the Actions column to view the progress.

Step 4: Bind a custom domain name to the instance

You can bind a custom domain name that has a Secure Sockets Layer (SSL) certificate to a Container Registry Enterprise Edition instance. After you perform this operation, you can use the custom domain name to access the instance over HTTPS.

We recommend that you set the custom domain name of the Container Registry Enterprise Edition instance to the domain name of the self-managed Harbor instance. For more information, see Use a custom domain name to access a Container Registry Enterprise Edition instance.