All Products
Search
Document Center

Container Registry:Migrate images from a self-managed Harbor instance to Container Registry Enterprise Edition within 10 minutes

Last Updated:Oct 31, 2024

Container Registry Enterprise Edition supports fast image migration and custom domain names. You can migrate data and images from self-managed Harbor instances to Container Registry Enterprise Edition and host the data and images by using cloud services and technologies provided by Alibaba Cloud. This can significantly reduce your O&M workload, simplify the integration with Container Service for Kubernetes (ACK), and make application delivery much easier.

Step 1: Migrate backend data of the Harbor instance

  • If your Harbor instance uses 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.

  • If the backend data of the Harbor instance is stored in OSS, skip this step.

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. Perform the following operations:

  1. Attach a RAM role to the account and grant the RAM role the permission to manage the OSS bucket. For more information, see Grant permissions to a RAM role that is used 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 Enterprise Edition instance that you want to manage.

  5. In the left-side navigation pane of the management page of the Container Registry Enterprise Edition instance, choose Instances > Image Import.

  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 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.