使用docker manifest构建镜像
2026-07-28 16:53:43
使用docker manifest构建镜像
准备
- 本地要有两个架构镜像
- docker需要开启cli:
export DOCKER_CLI_EXPERIMENTAL=”enabled”
具体操作
- 需要登录dockerhub(必须操作)
- 更改名字,如:
harbor.hyperdl.cn:180/hyperdl/pipeline:v5.0.arm64
harbor.hyperdl.cn:180/hyperdl/pipeline:v5.0.amd64 - 开始creat
docker manifest create –insecure chengminghui/pipeline:v5.0 chengminghui/pipeline:v5.0.arm64 chengminghui/pipeline:v5.0.amd64 - push命令
docker manifest push docker.io/chengminghui/pipeline:v5.0 - inspect查看
docker manifest inspect docker.io/chengminghui/pipeline:v5.0 - docker 可以正常pull
docker pull docker.io/chengminghui/pipeline:v5.0