Help Center/ Software Repository for Container/ User Guide/ Image Management/ Configuring Automatic Image Synchronization Between Regions
Updated on 2024-06-19 GMT+08:00

Configuring Automatic Image Synchronization Between Regions

Scenario

You can configure newly pushed images to be automatically synchronized to image repositories in other regions.

After you configure automatic image synchronization, image updates will also be synchronized to target repositories. However, images that were pushed to repositories before automatic image synchronization was enabled will not be automatically synchronized.

For details on how to synchronize pushed images before you set the automatic synchronization, see Can Existing Images be Automatically Synchronized.

Notes and Constraints

  • Only accounts and users with administrator permissions can configure automatic image synchronization.
  • Currently, images can be synchronized only among the following regions: CN North-Beijing1, CN East-Shanghai1, CN East-Shanghai2, CN South-Guangzhou, CN Southwest-Guiyang1, CN North-Ulanqab1, CN-Hong Kong, AP-Singapore, AP-Bangkok, and AF-Johannesburg.

Procedure

  1. Log in to the SWR console.
  2. In the navigation pane, choose My Images and click the target image.
  3. On the image details page, click Set Auto Sync in the upper right.
  4. Click . Select a target region and a target organization. Click OK.

    Figure 1 Configuring automatic image synchronization
    • Target Region: The target region for image synchronization, for example, CN-Hong Kong.
    • Target Organization: The target organization to which the image will be synchronized.
    • Overwrite:

      Select this option if you want to overwrite any image with the same name and tag in the target organization.

      Deselect this option if you do not want to overwrite images in the target organization. If the image you are synchronizing has a duplicate name and tag with an image in the target organization, the synchronization will be canceled and you will receive a notification.

  1. On the Synchronization Records tab page of image details page, you can view the details of each synchronization task, including the start time, image tag, task status, type, and duration.