github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/podman-save.1.md.in (about) 1 % podman-save 1 2 3 ## NAME 4 podman\-save - Save image(s) to an archive 5 6 ## SYNOPSIS 7 **podman save** [*options*] *name*[:*tag*] 8 9 **podman image save** [*options*] *name*[:*tag*] 10 11 ## DESCRIPTION 12 **podman save** saves an image to a local file or directory. 13 **podman save** writes to STDOUT by default and can be redirected to a 14 file using the **output** flag. The **quiet** flag suppresses the output when set. 15 **podman save** saves parent layers of the image(s) and the image(s) can be loaded using **podman load**. 16 To export the containers, use the **podman export**. 17 Note: `:` is a restricted character and cannot be part of the file name. 18 19 **podman [GLOBAL OPTIONS]** 20 21 **podman save [GLOBAL OPTIONS]** 22 23 **podman save [OPTIONS] NAME[:TAG]** 24 25 ## OPTIONS 26 27 @@option dir-compress 28 29 Note: This flag can only be set with **--format=docker-dir**. 30 31 #### **--format**=*format* 32 33 An image format to produce, one of: 34 35 | Format | Description | 36 | ------------------ | ---------------------------------------------------------------------------- | 37 | **docker-archive** | A tar archive interoperable with **docker load(1)** (the default) | 38 | **oci-archive** | A tar archive using the OCI Image Format | 39 | **oci-dir** | A directory using the OCI Image Format | 40 | **docker-dir** | **dir** transport (see **containers-transports(5)**) with v2s2 manifest type | 41 42 #### **--help**, **-h** 43 44 Print usage statement 45 46 #### **--multi-image-archive**, **-m** 47 48 Allow for creating archives with more than one image. Additional names are interpreted as images instead of tags. Only supported for **--format=docker-archive**. 49 The default for this option can be modified via the `multi_image_archive="true"|"false"` flag in containers.conf. 50 51 #### **--output**, **-o**=*file* 52 53 Write to a file, default is STDOUT 54 55 #### **--quiet**, **-q** 56 57 Suppress the output 58 59 #### **--uncompressed** 60 61 Accept uncompressed layers when using one of the OCI formats. 62 63 ## EXAMPLES 64 65 Save image to a local file without displaying progress. 66 ``` 67 $ podman save --quiet -o alpine.tar alpine:2.6 68 ``` 69 70 Save image to stdout and redirect content via shell. 71 ``` 72 $ podman save alpine > alpine-all.tar 73 ``` 74 75 Save image in oci-archive format to the local file. 76 ``` 77 $ podman save -o oci-alpine.tar --format oci-archive alpine 78 ``` 79 80 Save image compressed in docker-dir format. 81 ``` 82 $ podman save --compress --format docker-dir -o alp-dir alpine 83 Getting image source signatures 84 Copying blob sha256:2fdfe1cd78c20d05774f0919be19bc1a3e4729bce219968e4188e7e0f1af679d 85 1.97 MB / 1.97 MB [========================================================] 0s 86 Copying config sha256:501d1a8f0487e93128df34ea349795bc324d5e0c0d5112e08386a9dfaff620be 87 584 B / 584 B [============================================================] 0s 88 Writing manifest to image destination 89 Storing signatures 90 ``` 91 92 ## SEE ALSO 93 **[podman(1)](podman.1.md)**, **[podman-load(1)](podman-load.1.md)**, **[containers.conf(5)](https://github.com/containers/common/blob/main/docs/containers.conf.5.md)**, **[containers-transports(5)](https://github.com/containers/image/blob/main/docs/containers-transports.5.md)** 94 95 ## HISTORY 96 July 2017, Originally compiled by Urvashi Mohnani <umohnani@redhat.com>