制作多架构镜像

拉取多架构的不同 degest

x86 机器执行

1
2
3
docker pull registry.cn-beijing.aliyuncs.com/kubesphereio/coredns:1.8.6
docker tag registry.cn-beijing.aliyuncs.com/kubesphereio/coredns:1.8.6 hub.geovis.com.cn/library/coredns-amd64:1.8.6
docker push hub.geovis.com.cn/library/coredns-amd64:1.8.6

arm64 机器执行

1
2
3
docker pull registry.cn-beijing.aliyuncs.com/kubesphereio/coredns:1.8.6
docker tag registry.cn-beijing.aliyuncs.com/kubesphereio/coredns:1.8.6 hub.geovis.com.cn/library/coredns-arm64:1.8.6
docker push hub.geovis.com.cn/library/coredns-arm64:1.8.6

制作 manifest

1
2
docker manifest create --insecure hub.geovis.com.cn/library/coredns:1.8.6 hub.geovis.com.cn/library/coredns-arm64:1.8.6 hub.geovis.com.cn/library/coredns-amd64:1.8.6
docker manifest push --insecure hub.geovis.com.cn/library/coredns:1.8.6