4.9. Building multi-architecture images


Prerequisites

  • The container-tools meta-package is installed.

Procedure

  1. Create Containerfiles for each architecture you want to support.
  2. Build images for each architecture. For example:

    $ podman build --platform linux/arm64,linux/amd64 --manifest <registry>/<image> .
    • The --platform linux/arm64,linux/amd64 option specifies the target platforms for which the container image is being built.
    • The --manifest <registry>/<image> option creates a manifest list with the specified name, that is <registry>/<image>, and adds the newly-built images to them. A manifest list is a collection of image manifests, each one targeting a different architecture.
  3. Push the manifest list to the registry:

    $ podman manifest push <registry>/<image>

    This manifest list acts as a single entry point for pulling the multi-architecture container.

    As a result, you can pull the appropriate container image for your platform, based on a single manifest list.

    You can also remove items from the manifest list by using the podman manifest remove <manifest_list> <digest_ID> command, where <digest_ID> is the SHA-256 checksum of the container image. For example: podman manifest remove <registry>/<image> sha256:cb8a924afdf…​.

Verification

  • Display the manifest list:

    $ podman manifest inspect <registry>/<image>

    Refer to the podman-build(1) and podman-manifest(1) man page on your system for more information.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部