Skip to content
Blog

Cross-Registry Image Syncing and Mirroring Strategies

Automating cross-registry image mirroring using Skopeo, Regctl, and Harbor Replication, ensuring multi-cloud availability, disaster recovery, and air-gapped sync.

Published on • November 18, 2026

AI Assistant

Organizations deploying multi-cloud architectures (e.g. AWS + Azure + GCP) or operating edge sites often need to mirror container images across multiple registries.

Relying on naive docker pull -> docker tag -> docker push pipelines for cross-registry syncing is slow, consumes heavy host disk space, and strips away OCI manifest attestations.

In this tutorial, we will examine professional cross-registry image mirroring strategies using Skopeo, Regclient/Regctl, and Harbor Automated Replication Engine.

Why Naive docker pull/push Fails at Scale

Naive Approach (Slow & Destructive):
  [Host Disk] <-- pull (downloads 1GB) -- [Source Registry]
  [Host Disk] -- push (uploads 1GB) --> [Destination Registry]

Professional Skopeo / Direct Sync Approach (Zero Disk Usage):
  [Source Registry] ======= Direct Stream Sync ======> [Destination Registry]

Downsides of Naive docker pull/push:

  1. Host Disk Saturation: Pulling multi-gigabyte images fills build node disk storage.
  2. Architecture Stripping: If pulling a multi-arch image on an amd64 machine, standard docker pull fetches ONLY the amd64 variant, stripping away arm64 support for the destination registry!
  3. Loss of Signature Attestations: Can break cosign signatures and SLSA provenance attestations attached to the manifest index.

Method 1: Cross-Registry Syncing with Skopeo

Skopeo is a CLI utility specifically built for inspecting and copying container images directly between OCI registries without requiring a local Docker daemon or disk storage.

1. Copying an Image Directly Between Registries

skopeo copy \
  --all \
  docker://docker.io/library/nginx:1.25 \
  docker://myregistry.com/mirrors/nginx:1.25
  • --all: Preserves all platform variants (amd64, arm64, s390x) defined in the multi-architecture manifest index.

2. Authenticating Across Two Different Registries

skopeo copy \
  --src-creds "srcuser:srctoken" \
  --dest-creds "destuser:desttoken" \
  docker://registry-a.com/app:v1 \
  docker://registry-b.com/app:v1

3. Bulk Syncing Repositories with skopeo sync

You can define a YAML configuration file (sync.yaml) to synchronize entire repositories continuously:

# sync.yaml
docker.io/library:
  images:
    redis:
      - "7-alpine"
    postgres:
      - "15-alpine"

Execute bulk sync:

skopeo sync --src docker --dest docker sync.yaml myregistry.com/official-mirrors

Method 2: Harbor Enterprise Replication Engine

For enterprise platforms running Project Harbor, image replication can be managed visually and automated via event triggers.

+-----------------------------------------------------------------------------------+
| Harbor Replication Engine                                                         |
+-----------------------------------------------------------------------------------+
|  Replication Trigger: On Push / Event-Based                                       |
|  Source             : Harbor Instance A (us-east-1)                                |
|  Destination        : AWS ECR / Azure ACR / Harbor Instance B (eu-central-1)      |
|  Filters            : Name matching 'prod/*', Tags matching 'v*.*.*'              |
+-----------------------------------------------------------------------------------+

Setting Up a Replication Rule in Harbor:

  1. Navigate to Administration -> Registries -> New Endpoint (Add AWS ECR or secondary Harbor credentials).
  2. Navigate to Replication -> New Replication Rule.
  3. Set Source Namespace, Destination Registry, and Filters.
  4. Set Trigger Mode to Event Based (syncs immediately when a developer pushes a tag) or Scheduled Cron.

Method 3: Regctl / Regclient for Fast Layer Copying

Regctl (part of the regclient suite) focuses on high-performance HTTP API manipulation:

# Copy image index and blobs directly between registries
regctl image copy registry-a.com/app:v1 registry-b.com/app:v1

Comparing Sync Methods

ToolDaemon Required?Preserves Multi-Arch?Disk UsagePrimary Strengths
docker pull/pushYesNo (Single arch)HighBasic local testing
SkopeoNoYesZeroVersatile CLI; CI/CD scripts
RegctlNoYesZeroLightweight Go binary
Harbor SyncNoYesZeroEnterprise UI, event-driven

Summary

Adopting dedicated tools like Skopeo or Harbor Replication for cross-registry synchronization preserves multi-architecture manifests, avoids host disk bloat, and guarantees high availability across multi-cloud infrastructure.