Setting Up Replication Rules for Your Container Registry

The Replication tab in Ace Container Registry lets you automate the synchronization of container images between your registry and external registries (e.g., AWS ECR, Azure ACR, Docker Hub). Replication ensures consistency across environments and helps in multi-cloud or hybrid setups.

Accessing the Replication Tab

  1. Log in to the AceCloud Console.

  2. Select your Project and Region.

  3. Navigate to Container Registry.

  4. Click Overview.

  5. Select the Replications tab.

Creating a Replication Rule

1. Click on Create Replication Rule

2. Fill in Rule Details

  • Name: Unique name for the replication rule.

  • Description: Optional description for identification.

3. Define Source Resource Filters

  • Resource Filter Name: Choose the repositories/images you want to replicate.

  • Tag Matching: Define which tags should be included (e.g., v1.*, latest).

  • Tag Excluding: Define which tags should be excluded (e.g., dev-*).

Pattern Matching Syntax (Harbor Style)

  • Use * to match any sequence of characters within a single level.

    • Example: frontend-* matches frontend-app and frontend-ui.

  • Use ** to match across multiple levels (recursive).

    • Example: **/nginx matches prod/nginx, staging/web/nginx, etc.

4. Configure Resources

  • Resource: Choose which repository or image is included.

  • Source Registry: Select the source registry created earlier (Docker Hub, AWS ECR, or Azure ACR).

  • Destination Namespace: Must match the registry name.

  • Flattening: Enable if you want to remove the repository hierarchy when replicating.

5. Save the Replication Rule

  • Review settings and click Create Rule.

  • The rule will now appear in the Replications tab.

Best Practices

  • Always use tag filters to avoid unnecessary replication of unwanted or experimental images.

  • Use immutable rules together with replication to ensure tags cannot be overwritten.

  • Remember: Destination Namespace must be equal to the Registry Name for replication to succeed.

Last updated