创建多平台 docker 图像而不用单独的标签推送每个图像

Create Multiplatform docker image without pushing each image with separate tag

我尝试使用此 docker 博客 post https://www.docker.com/blog/multi-platform-docker-builds/

创建多平台 docker 图像

它运行良好,但结果我得到了几张图片(例如,多平台 tag:latest,每个平台一张 - :amd64、:arm64 等)

但是例如在 ubuntu 官方注册表 (https://hub.docker.com/_/ubuntu) 中,他们只有一个带有标签 :latest 的多平台图像,没有其他图像。

他们是怎么做到的?

好的,我知道怎么做了。我需要将我的图片设为官方 Docker 图片

https://docs.docker.com/docker-hub/official_images/