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.
- If your Harbor instance uses a data center as the backend storage, you must use the Data Online Migration service of OSS to migrate data from the data center to an OSS bucket. For more information, see Migrate data from a local IDC 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.
- 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.
- 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
- Log on to the Container Registry console.
- In the top navigation bar, select a region.
- In the left-side navigation pane, click Instances.
- On the Instances page, click the Enterprise Edition instance that you want to manage.
- On the management page of the Container Registry Enterprise Edition instance, choose in the left-side navigation pane,
- On the Image Import page, click Trigger Task.
- 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.