logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

podman-save - Save image(s) to an archive

Description

podmansave saves an image to a local file or directory.  podmansave writes to STDOUT by default and can
       be  redirected  to  a  file using the output flag. The quiet flag suppresses the output when set.  podmansave saves parent layers of the image(s) and the image(s) can be loaded using podmanload.  To export the
       containers, use the podmanexport.  Note: : is a restricted character and cannot  be  part  of  the  file
       name.

       podman[GLOBALOPTIONS]podmansave[GLOBALOPTIONS]podmansave[OPTIONS]NAME[:TAG]

Examples

       Save image to a local file without displaying progress.

       $ podman save --quiet -o alpine.tar alpine:2.6

       Save image to stdout and redirect content via shell.

       $ podman save alpine > alpine-all.tar

       Save image in oci-archive format to the local file.

       $ podman save -o oci-alpine.tar --format oci-archive alpine

       Save image compressed in docker-dir format.

       $ podman save --compress --format docker-dir -o alp-dir alpine
       Getting image source signatures
       Copying blob sha256:2fdfe1cd78c20d05774f0919be19bc1a3e4729bce219968e4188e7e0f1af679d
        1.97 MB / 1.97 MB [========================================================] 0s
       Copying config sha256:501d1a8f0487e93128df34ea349795bc324d5e0c0d5112e08386a9dfaff620be
        584 B / 584 B [============================================================] 0s
       Writing manifest to image destination
       Storing signatures

History

       July 2017, Originally compiled by Urvashi Mohnani umohnani@redhat.commailto:umohnani@redhat.compodman-save(1)

Name

       podman-save - Save image(s) to an archive

Options

--compress
       Compress  tarball  image  layers  when pushing to a directory using the 'dir' transport. (default is same
       compression type, compressed or uncompressed, as source)

       Note: This flag can only be set with --format=docker-dir.

   --format=format
       An image format to produce, one of:

       ┌────────────────┬──────────────────────────────────────────────────────────────────────┐
       │ FormatDescription                                                          │
       ├────────────────┼──────────────────────────────────────────────────────────────────────┤
       │ docker-archive │ A tar archive interoperable with dockerload(1) (the default)        │
       ├────────────────┼──────────────────────────────────────────────────────────────────────┤
       │ oci-archive    │ A tar archive using the OCI Image Format                             │
       ├────────────────┼──────────────────────────────────────────────────────────────────────┤
       │ oci-dir        │ A directory using the OCI Image Format                               │
       ├────────────────┼──────────────────────────────────────────────────────────────────────┤
       │ docker-dirdir transport (see containers-transports(5)) with v2s2 manifest type │
       └────────────────┴──────────────────────────────────────────────────────────────────────┘

   --help,-h
       Print usage statement

   --multi-image-archive,-m
       Allow for creating archives with more than one image.  Additional names are interpreted as images instead
       of tags.  Only supported for --format=docker-archive.  The default for this option can  be  modified  via
       the multi_image_archive="true"|"false" flag in containers.conf.

   --output,-o=file
       Write to a file, default is STDOUT

   --quiet,-q
       Suppress the output

   --uncompressed
       Accept uncompressed layers when using one of the OCI formats.

See Also

podman(1), podman-load(1), containers.conf(5), containers-transports(5)

Synopsis

podmansave [options] name[:tag]

       podmanimagesave [options] name[:tag]

See Also