October 15, 2021

Docker多架构镜像推送

一、创建不同架构的镜像,可用名称或tag区分平台

author/image_name:amd64
author/image_name:arm64

将不同架构的镜像推送到hub,不然会出现no such manifest错误

二、创建合集maniferst

docker manifest create author/image_name:latest \
    author/image_name:amd64 \
    author/image_name:arm64 --amend

三、推送对应的manifest

docker manifest push author/image_name:latest