使用docker manifest构建镜像
2026-07-28 16:53:43

使用docker manifest构建镜像

准备

  1. 本地要有两个架构镜像
  2. docker需要开启cli:
    export DOCKER_CLI_EXPERIMENTAL=”enabled”

具体操作

  1. 需要登录dockerhub(必须操作)
  2. 更改名字,如:
    harbor.hyperdl.cn:180/hyperdl/pipeline:v5.0.arm64
    harbor.hyperdl.cn:180/hyperdl/pipeline:v5.0.amd64
  3. 开始creat
    docker manifest create –insecure chengminghui/pipeline:v5.0 chengminghui/pipeline:v5.0.arm64 chengminghui/pipeline:v5.0.amd64
  4. push命令
    docker manifest push docker.io/chengminghui/pipeline:v5.0
  5. inspect查看
    docker manifest inspect docker.io/chengminghui/pipeline:v5.0
  6. docker 可以正常pull
    docker pull docker.io/chengminghui/pipeline:v5.0

参考文档:

使用 docker manifest 构建跨平台镜像