podman-manifest-add(1)

πŸ“¦
version 6.1.4 Β· 6 versions
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– podman-manifest-add πŸ’–

okay bestie, gather round, because this one is literally from the General Commands Manual and it's giving main character energy for your manifest lists. it's podman-manifest-add, and it's about to be your new obsession 🫢


✨ NAME ✨

podman-manifest-add β€” add an image or artifact to a manifest list or image index πŸŽ€


✨ SYNOPSIS ✨

podman manifest add [options] listnameorindexname [transport]:imagename imageorartifactname [...]

✨ DESCRIPTION ✨

so basically? it adds the image you picked to the manifest list or image index you picked. OR β€” plot twist β€” it creates an artifact manifest and adds that to the image index you specified. either way you're adding something to a list and it's iconic πŸ’…


✨ RETURN VALUE ✨

the list image's ID. that's it, that's the tea. πŸ‘‘


✨ OPTIONS ✨

  • --all β€” if the image you're adding is itself a list or index, this adds all of its contents to the local list. default behaviour is only adding one image from such a list or index. ngl, combining --all with any of the other options down below is NOT recommended, so don't do that to yourself bestie 😭
  • --annotation=annotation=value β€” sets an annotation on the entry for the image or artifact you specified.
  • --arch=architecture β€” overrides the architecture that the list or index records as a requirement for the image. if imageName points at a manifest list or image index, the architecture info gets pulled from there. otherwise it comes from the image's configuration information.
  • --artifact β€” creates an artifact manifest and adds it to the image index. arguments after the index name get interpreted as file names instead of image references. in most scenarios you should also be passing --artifact-type too, just saying.
  • --artifact-config=path β€” when you're creating an artifact manifest and adding it to the image index, this uses the specified file's contents as the configuration blob in the artifact manifest. in most scenarios the preferred move is leaving the default value alone, and that default means an empty configuration. πŸ™ˆ
  • --artifact-config-type=type β€” when creating an artifact manifest and adding it to the image index, this uses the specified MIME type as the mediaType tied to the configuration blob in the artifact manifest. again, in most scenarios the preferred move is leaving the default value unchanged β€” that default signifies either an empty configuration or the standard OCI configuration type.
  • --artifact-exclude-titles β€” when creating an artifact manifest and adding it to the image index, this stops it from setting "org.opencontainers.image.title" annotations equal to the file's basename for each file added to the artifact manifest. tools that retrieve artifacts from a registry may use those values to choose file names when saving artifacts to disk, so this option is not recommended unless a particular registry requires it for interoperability. ⚠️
  • --artifact-layer-type=type β€” when creating an artifact manifest and adding it to the image index, this uses the specified MIME type as the mediaType tied to the files' contents. if you don't specify it, guesses get made based on either the file names or their contents β€” but if you need certainty, specify it.
  • --artifact-subject=imageName β€” when creating an artifact manifest and adding it to the image index, this sets the subject field in the artifact manifest, marking the artifact manifest as associated with the specified image in some way. an artifact manifest can only be associated with, at most, one subject. periodt.
  • --artifact-type=type β€” when creating an artifact manifest, this uses the specified MIME type as the manifest's artifactType value instead of the less informative default value.
  • --authfile=path β€” path of the authentication file. default is ${XDG_RUNTIME_DIR}/containers/auth.json on Linux, and $HOME/.config/containers/auth.json on Windows/macOS. the file is created by podman login. if the authorization state isn't found there, $HOME/.docker/config.json gets checked, which is set using docker login.
note: there's also the option to override the default path of the authentication file by setting the REGISTRY_AUTH_FILE environment variable. you do it like this: export REGISTRY_AUTH_FILE=path.
  • --cert-dir=path β€” uses certificates at path (*.crt, *.cert, *.key) to connect to the registry. (default: /etc/containers/certs.d) for the deets, see containers-certs.d(5). (heads up: this option is not available with the remote Podman client, including Mac and Windows machines, excluding WSL2) πŸ’€
  • --creds=[username[:password]] β€” the [username[:password]] to use when authenticating with the registry, if that's required. if one or both values aren't supplied, a command line prompt shows up and you can type the value in. the password gets entered without echo.
note that the credentials you specify are only used to authenticate against target registries. they are not used for mirrors, and not used when the registry gets rewritten (see containers-registries.conf(5)). to authenticate against those, consider using a containers-auth.json(5) file instead.
  • --features=feature β€” specifies the features list that the list or index records as requirements for the image. this option is rarely used. (rare queen energy ✨)
  • --os=OS β€” overrides the OS that the list or index records as a requirement for the image. if imagename refers to a manifest list or image index, the OS information is retrieved from it. otherwise it's retrieved from the image's configuration information.
  • --os-version=version β€” specifies the OS version that the list or index records as a requirement for the image. this option is rarely used too.
  • --tls-verify β€” require HTTPS and verify certificates when contacting registries (default: true). if explicitly set to true, TLS verification is used. if set to false, TLS verification is not used. if not specified, TLS verification is used unless the target registry is listed as an insecure registry in containers-registries.conf(5). πŸ”₯
  • --variant β€” specifies the variant that the list or index records for the image. this option is typically used to distinguish between multiple entries that share the same architecture value, but which expect different versions of its instruction set. iykyk.

🌈 Transport 🌈

multiple transports are supported, bestie. here's the whole roster:

docker://docker-reference (default)

an image in a registry implementing the "Docker Registry HTTP API V2". by default it uses the authorization state in $XDG_RUNTIME_DIR/containers/auth.json, which is set using (podman login). if the authorization state isn't found there, $HOME/.docker/config.json gets checked, which is set using (docker login).

$ podman manifest add mylist:v1.11 docker://quay.io/username/myimage

containers-storage:oci-reference

an image in oci-reference format stored in the local container storage. oci-reference must contain a tag.

$ podman manifest add mylist:v1.11 containers-storage:quay.io/username/myimage

dir:path

an existing local directory path storing the manifest, layer tarballs, and signatures as individual files. this is a non-standardized format, primarily useful for debugging or noninvasive container inspection.

$ podman manifest add dir:/tmp/myimage

docker-archive:path[:docker-reference]

an image is stored in the docker save formatted file. docker-reference is only used when creating such a file, and it must not contain a digest.

$ podman manifest add docker-archive:/tmp/myimage

docker-daemon:docker-reference

an image in docker-reference format stored in the docker daemon internal storage. the docker-reference can also be an image ID (docker-daemon:algo:digest).

$ sudo podman manifest add docker-daemon:docker.io/library/myimage:33

oci-archive:path:tag

an image tag in a directory compliant with "Open Container Image Layout Specification" at path.

$ podman manifest add oci-archive:/tmp/myimage

🌸 EXAMPLES 🌸

add the specified default image from a source manifest list to a destination manifest list:

podman manifest add mylist:v1.11 docker://fedora
71c201d10fffdcac52968a000d85a0a016ca1c7d5473948000d3131c1773d965

add all images from a source manifest list to a destination manifest list:

podman manifest add --all mylist:v1.11 docker://fedora
71c201d10fffdcac52968a000d85a0a016ca1c7d5473948000d3131c1773d965

add a selected image matching arch and variant from a source manifest list to a destination manifest list:

podman manifest add --arch arm64 --variant v8 mylist:v1.11 docker://71c201d10fffdcac52968a000d85a0a016ca1c7d5473948000d3131c1773d965

πŸ¦‹ SEE ALSO πŸ¦‹

podman(1), podman-manifest(1)


and that's the whole page babes, straight outta the General Commands Manual β€” podman-manifest-add(1), go add some images to your lists and slay πŸ’…βœ¨πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from