![]() |
![]()
| ![]() |
![]()
NAMEbuildah-manifest - Create and manipulate manifest lists and image indexes. SYNOPSISbuildah manifest COMMAND [OPTIONS] [ARG...] DESCRIPTIONThe buildah manifest command provides subcommands which can be used to: * Create a working Docker manifest list or OCI image index. * Add an entry to a manifest list or image index for a specified image. * Add an entry to an image index for an artifact manifest referring to a file. * Add or update information about an entry in a manifest list or image index. * Delete a working container or an image. * Push a manifest list or image index to a registry or other location. SUBCOMMANDS
EXAMPLESBuilding a multi-arch manifest list from a ContainerfileAssuming the Containerfile uses RUN instructions, the host needs a way to execute non-native binaries. Configuring this is beyond the scope of this example. Building a multi-arch manifest list shazam in parallel across 4-threads can be done like this:
Note: The --jobs argument is optional, and the --manifest option should be used instead of the-t or --tag options. Assembling a multi-arch manifest from separately built imagesAssuming example.com/example/shazam:$arch images are built separately on other hosts and pushed to the example.com registry. They may be combined into a manifest list, and pushed using a simple loop:
Note: The add instruction argument order is <manifest> then <image>. Also, the --all push option is required to ensure all contents are pushed, not just the native platform/arch. Removing and tagging a manifest list before pushingSpecial care is needed when removing and pushing manifest lists, as opposed to the contents. You almost always want to use the manifest rm and manifest push --all subcommands. For example, a rename and push could be performed like this:
SEE ALSObuildah(1), buildah-manifest-create(1), buildah-manifest-add(1), buildah-manifest-remove(1), buildah-manifest-annotate(1), buildah-manifest-inspect(1), buildah-manifest-push(1), buildah-manifest-rm(1)
|