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:
- Host Disk Saturation: Pulling multi-gigabyte images fills build node disk storage.
- Architecture Stripping: If pulling a multi-arch image on an
amd64machine, standarddocker pullfetches ONLY theamd64variant, stripping awayarm64support for the destination registry! - 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:
- Navigate to Administration -> Registries -> New Endpoint (Add AWS ECR or secondary Harbor credentials).
- Navigate to Replication -> New Replication Rule.
- Set Source Namespace, Destination Registry, and Filters.
- 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
| Tool | Daemon Required? | Preserves Multi-Arch? | Disk Usage | Primary Strengths |
|---|---|---|---|---|
docker pull/push | Yes | No (Single arch) | High | Basic local testing |
| Skopeo | No | Yes | Zero | Versatile CLI; CI/CD scripts |
| Regctl | No | Yes | Zero | Lightweight Go binary |
| Harbor Sync | No | Yes | Zero | Enterprise 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.