This helper project will synchronize Docker image from popular public Docker Registry services to your own registry.
pip install docker
pip install python-dateutil
pip install requests[security]
Edit the images.txt of the image repositories for syncing
quay.io/coreos/prometheus-operator=registry.cn-hangzhou.aliyuncs.com/coreos_containers/prometheus-operator
gcr.io/google_containers/pause-amd64
Each line will be one repo definition
source_repo=target_repo
Sync the source repo to specific target repo
or
source_repo
Sync the source repo to default target repo, which is using default registry, namespace and the same name of the source repo.
In case to sync private repos of aliyun registry cross regions, you have to configure your aliyun cli before you get start, pls refer to aliyun-cli
registry.cn-hangzhou.aliyuncs.com/eric-dev/debug=registry.ap-southeast-1.aliyuncs.com/eric-dev/debug
Help
python sync_images.py -h|--help
Synchronize images from the configuraiton files, by default "images.txt"
python sync_images.py
Other optional arguments
-f|--file <image_list_file>
-r|--registry <host:port> Default "registry.cn-hangzhou.aliyuncs.com"
-n|--namespace <namespace> Default "google_containers"
-d|--days <days> Default 15
You can run the following command to remove the images created more than 30 days (720h) ago:
docker image prune -a --force --filter "until=720h"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型