| name | registry-sync |
| description | Cross-registry image mirroring and copy: skopeo sync, skopeo copy, docker.io, apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com, infracreate-registry.cn-zhangjiakou.cr.aliyuncs.com, ECR, set_registry_and_repo.sh. Use when syncing images to Aliyun, copying images between registries, retagging images, or preparing offline image packages.
|
Registry Sync
This skill covers image synchronization between registries: docker.io ↔ Aliyun (legacy and new domains), single-image copy, and bulk sync.
Related Files
Workflows
Utils
Registry Conventions
| Registry | Script/variable keyword |
|---|
| docker.io | DOCKER_REGISTRY_URL, docker.io |
| Legacy Aliyun | apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com, aliyun |
| New Aliyun | infracreate-registry.cn-zhangjiakou.cr.aliyuncs.com, aliyun-new |
| ECR | AWS temporary credentials, ECR_USER=AWS in scripts |
Call Chain
skopeo-sync-images-*.yml
└── skopeo_sync_to_*.sh <user> <pass> <image-list-file> [registry]
release-image-sync.yml
└── manifests_images_push.sh / skopeo_copy_to_*.sh
Common Tasks
1. Bulk sync images to Aliyun
- Prepare an image list file with one full image name per line (without registry prefix).
- Trigger the workflow or run locally:
./.github/utils/skopeo_sync_to_aliyun.sh \
$DOCKER_USER $DOCKER_PASSWORD \
$ALIYUN_USER $ALIYUN_PASSWORD \
images-list.txt docker.io
2. Migrate legacy Aliyun to new Aliyun
./.github/utils/skopeo_sync_aliyun_to_aliyun_new.sh \
$ALIYUN_USER $ALIYUN_PASSWORD \
$ALIYUN_USER_NEW $ALIYUN_PASSWORD_NEW \
images-list.txt
3. Copy a single image with a new tag
./.github/utils/skopeo_copy_to_docker_new_tag.sh \
$DOCKER_USER $DOCKER_PASSWORD \
old-image:tag new-image:tag
4. Change chart default registry
./.github/utils/set_registry_and_repo.sh docker.io addons
This sets registry: to docker.io in addons/*/values.yaml and normalizes repository: under apecloud/.
Notes
- All skopeo scripts retry (usually 10 times, sleep 1 second).
- ECR copies automatically use
ECR_USER=AWS + temporary password.
- Image list file format matters; keep one full image path per line.
Related Skills