使用image-syncer同步多CPU架构镜像到私有仓库
下载image-syncer
mkdir ~/image-syncers
cd ~/image-syncers
wget https://github.com/AliyunContainerService/image-syncer/releases/download/v1.3.1/image-syncer-v1.3.1-linux-amd64.tar.gz
tar xzvf image-syncer-v1.3.1-linux-amd64.tar.gz创建 config.yaml
auth:
registry.hisun.netwarpps.com:
username: "username"
password: "xxxxxxxx"
offlineregistry.example.com:5000:
insecure: true
images:
docker.io/library/ubuntu:21.10: registry.example.com/library/ubuntu:21.10
registry.example.com/library/ubuntu:21.10: offlineregistry.example.com:5000/library/ubuntu:21.10执行同步
验证其中一个镜像信息
参考
https://github.com/AliyunContainerService/image-syncer
https://docs.docker.com/engine/reference/commandline/manifest/
Last updated