You can configure sync rules to automatically synchronize images from a source instance to a target instance. Automatic image synchronization between instances deployed in different regions is supported.

Procedure

  1. Log on to the Container Registry console. In the top navigation bar, select the region.
  2. In the left-side navigation pane, choose Enterprise Edition Instances > Instances.
  3. On the Instances page, click the name of the target Enterprise Edition instance.
  4. On the page that appears, choose Distributions > Instance Sync.
  5. Create a sync rule.
    Note
    • If an instance is already set as a source or target instance in an existing sync rule, you cannot use the instance as a target instance to create a new sync rule.
    • If an instance is already set as a target instance in an existing sync rule, you cannot use the instance as a source or target instance to create a new sync rule.
    1. On the Instance Sync page, click Create Sync Rule.
    2. In the Create Sync Rule dialog box that appears, specify instance information and click Next.
      • Rule Name: Specify a name for the rule.
      • Target Instance: Select the region where the target instance is deployed and set the target instance name.
      Note Internet access is not required to synchronize images across regions. This avoids security risks when data is transmitted over the internet.
    3. Specify synchronization information and click Create.
      • Sync Object: Select between Namespace and Repository.
      • Source Address: Select the target namespace and repository. Enter a regular expression to filter repositories by version.

Results

After the sync rule is created, a sync task is automatically triggered when a new image is uploaded to the repository whose name matches the regular expression.

You can choose Distributions > Sync Records to view sync tasks.