.nh
.TH podman-manifest-add 1
.SH NAME
.PP
podman-manifest-add - Add an image to a manifest list or image index

.SH SYNOPSIS
.PP
\fBpodman manifest add\fP [\fIoptions\fP] \fIlistnameorindexname\fP [\fItransport\fP]:\fIimagename\fP

.SH DESCRIPTION
.PP
Adds the specified image to the specified manifest list or image index.

.SH RETURN VALUE
.PP
The list image's ID.

.SH OPTIONS
.SS \fB--all\fP
.PP
If the image which should be added to the list or index is itself a list or
index, add all of the contents to the local list.  By default, only one image
from such a list or index will be added to the list or index.  Combining
\fI--all\fP with any of the other options described below is NOT recommended.

.SS \fB--annotation\fP=\fIannotation=value\fP
.PP
Set an annotation on the entry for the image.

.SS \fB--arch\fP
.PP
Override the architecture which the list or index records as a requirement for
the image.  If \fIimageName\fP refers to a manifest list or image index, the
architecture information will be retrieved from it.  Otherwise, it will be
retrieved from the image's configuration information.

.SS \fB--authfile\fP=\fIpath\fP
.PP
Path of the authentication file. Default is \fB\fC${XDG_RUNTIME_DIR}/containers/auth.json\fR, which is set using \fBpodman login\fP\&.
If the authorization state is not found there, \fB\fC$HOME/.docker/config.json\fR is checked, which is set using \fBdocker login\fP\&.

.PP
Note: There is also the option to override the default path of the authentication file by setting the \fB\fCREGISTRY_AUTH_FILE\fR environment variable. This can be done with \fBexport REGISTRY_AUTH_FILE=\fIpath\fP\fP\&.

.SS \fB--cert-dir\fP=\fIpath\fP
.PP
Use certificates at \fIpath\fP (*\&.crt, *\&.cert, *\&.key) to connect to the registry. (Default: /etc/containers/certs.d)
Please refer to \fBcontainers-certs.d(5)\fP for details.
(This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)

.SS \fB--creds\fP=\fI[username[:password]]\fP
.PP
The [username[:password]] to use to authenticate with the registry, if required.
If one or both values are not supplied, a command line prompt will appear and the
value can be entered. The password is entered without echo.

.PP
Note that the specified credentials are only used to authenticate against
target registries.  They are not used for mirrors or when the registry gets
rewritten (see \fB\fCcontainers-registries.conf(5)\fR); to authenticate against those
consider using a \fB\fCcontainers-auth.json(5)\fR file.

.SS \fB--features\fP
.PP
Specify the features list which the list or index records as requirements for
the image.  This option is rarely used.

.SS \fB--os\fP
.PP
Override the OS which the list or index records as a requirement for the image.
If \fIimagename\fP refers to a manifest list or image index, the OS information
will be retrieved from it.  Otherwise, it will be retrieved from the image's
configuration information.

.SS \fB--os-version\fP
.PP
Specify the OS version which the list or index records as a requirement for the
image.  This option is rarely used.

.SS \fB--tls-verify\fP
.PP
Require HTTPS and verify certificates when contacting registries (default: \fBtrue\fP).
If explicitly set to \fBtrue\fP, TLS verification will be used.
If set to \fBfalse\fP, TLS verification will not be used.
If not specified, TLS verification will be used unless the target registry
is listed as an insecure registry in \fBcontainers-registries.conf(5)\fP

.SS \fB--variant\fP
.PP
Specify the variant which the list or index records for the image.  This option
is typically used to distinguish between multiple entries which share the same
architecture value, but which expect different versions of its instruction set.

.SH Transport
.PP
Multiple transports are supported:

.PP
\fBdocker://\fP\fIdocker-reference\fP \fI(default)\fP
  An image in a registry implementing the "Docker Registry HTTP API V2". By default, uses the authorization state in \fB\fC$XDG_RUNTIME_DIR/containers/auth.json\fR, which is set using \fB\fC(podman login)\fR\&. If the authorization state is not found there, \fB\fC$HOME/.docker/config.json\fR is checked, which is set using \fB\fC(docker login)\fR\&.

.PP
.RS

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

.fi
.RE

.PP
\fBcontainers-storage:\fP\fIoci-reference\fP
  An image in \fIoci-reference\fP format stored in the local container storage. \fIoci-reference\fP must contain a tag.

.PP
.RS

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

.fi
.RE

.PP
\fBdir:\fP\fIpath\fP
  An existing local directory \fIpath\fP storing the manifest, layer tarballs, and signatures as individual files. This
  is a non-standardized format, primarily useful for debugging or noninvasive container inspection.

.PP
.RS

.nf
$ podman manifest add dir:/tmp/myimage

.fi
.RE

.PP
\fBdocker-archive:\fP\fIpath\fP[\fB:\fP\fIdocker-reference\fP]
  An image is stored in the \fB\fCdocker save\fR formatted file.  \fIdocker-reference\fP is only used when creating such a
  file, and it must not contain a digest.

.PP
.RS

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

.fi
.RE

.PP
\fBdocker-daemon:\fP\fIdocker-reference\fP
  An image in \fIdocker-reference\fP format stored in the docker daemon internal storage. The \fIdocker-reference\fP can also be an image ID (docker-daemon:algo:digest).

.PP
.RS

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

.fi
.RE

.PP
\fBoci-archive:\fP\fIpath\fP\fB:\fP\fItag\fP
  An image \fItag\fP in a directory compliant with "Open Container Image Layout Specification" at \fIpath\fP\&.

.PP
.RS

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

.fi
.RE

.SH EXAMPLE
.PP
.RS

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

.fi
.RE

.PP
.RS

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

.fi
.RE

.PP
.RS

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

.fi
.RE

.SH SEE ALSO
.PP
\fBpodman(1)\fP, \fBpodman-manifest(1)\fP
