2018-08-30 08:41:19 +00:00
% podman-save(1)
2017-11-01 15:24:59 +00:00
## NAME
2019-03-16 10:46:35 +00:00
podman\-save - Save an image to a container archive
2017-11-01 15:24:59 +00:00
## SYNOPSIS
2018-06-29 17:53:33 +00:00
**podman save** [*options*] *name* [:*tag*]
2017-11-01 15:24:59 +00:00
## DESCRIPTION
2019-03-16 10:46:35 +00:00
**podman save** saves an image to either **docker-archive** , **oci-archive** , **oci-dir** (directory with oci manifest type), or **docker-dir** (directory with v2s2 manifest type) on the local machine,
2017-12-15 21:58:36 +00:00
default is **docker-archive** . **podman save** writes to STDOUT by default and can be redirected to a
2017-12-14 17:49:22 +00:00
file using the **output** flag. The **quiet** flag suppresses the output when set.
2018-04-29 21:37:51 +00:00
Note: `:` is a restricted character and cannot be part of the file name.
2017-11-01 15:24:59 +00:00
2017-12-15 21:58:36 +00:00
**podman [GLOBAL OPTIONS]**
2017-11-01 15:24:59 +00:00
2017-12-15 21:58:36 +00:00
**podman save [GLOBAL OPTIONS]**
2017-11-01 15:24:59 +00:00
2017-12-15 21:58:36 +00:00
**podman save [OPTIONS] NAME[:TAG]**
2017-11-01 15:24:59 +00:00
## OPTIONS
2017-12-14 17:49:22 +00:00
**--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 when using the **dir** transport i.e --format=oci-dir or --format-docker-dir
2019-05-31 19:21:47 +00:00
**--output**, ** -o**=*file*
2018-06-14 15:44:39 +00:00
2017-11-01 15:24:59 +00:00
Write to a file, default is STDOUT
2019-05-31 19:21:47 +00:00
**--format**=*format*
2018-06-14 15:44:39 +00:00
2019-05-31 19:21:47 +00:00
Save image to **oci-archive, oci-dir** (directory with oci manifest type), or **docker-dir** (directory with v2s2 manifest type)
2017-11-01 15:24:59 +00:00
```
--format oci-archive
2017-12-14 17:49:22 +00:00
--format oci-dir
--format docker-dir
2017-11-01 15:24:59 +00:00
```
2019-05-31 19:21:47 +00:00
**--quiet**, ** -q**
2018-06-14 15:44:39 +00:00
2017-11-01 15:24:59 +00:00
Suppress the output
2018-06-29 17:53:33 +00:00
**--help**, ** -h**
Print usage statement
2017-11-01 15:24:59 +00:00
## EXAMPLES
```
2018-08-30 11:05:37 +00:00
$ podman save --quiet -o alpine.tar alpine:2.6
2017-11-01 15:24:59 +00:00
```
```
2018-08-30 11:05:37 +00:00
$ podman save > alpine-all.tar alpine
2017-11-01 15:24:59 +00:00
```
```
2018-08-30 11:05:37 +00:00
$ podman save -o oci-alpine.tar --format oci-archive alpine
2017-11-01 15:24:59 +00:00
```
2017-12-14 17:49:22 +00:00
```
2018-08-30 11:05:37 +00:00
$ podman save --compress --format oci-dir -o alp-dir alpine
2017-12-14 17:49:22 +00:00
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
```
```
2018-08-30 11:05:37 +00:00
$ podman save --format docker-dir -o ubuntu-dir ubuntu
2017-12-14 17:49:22 +00:00
Getting image source signatures
Copying blob sha256:660c48dd555dcbfdfe19c80a30f557ac57a15f595250e67bfad1e5663c1725bb
45.55 MB / 45.55 MB [======================================================] 8s
Copying blob sha256:4c7380416e7816a5ab1f840482c9c3ca8de58c6f3ee7f95e55ad299abbfe599f
846 B / 846 B [============================================================] 0s
Copying blob sha256:421e436b5f80d876128b74139531693be9b4e59e4f1081c9a3c379c95094e375
620 B / 620 B [============================================================] 0s
Copying blob sha256:e4ce6c3651b3a090bb43688f512f687ea6e3e533132bcbc4a83fb97e7046cea3
849 B / 849 B [============================================================] 0s
Copying blob sha256:be588e74bd348ce48bb7161350f4b9d783c331f37a853a80b0b4abc0a33c569e
169 B / 169 B [============================================================] 0s
Copying config sha256:20c44cd7596ff4807aef84273c99588d22749e2a7e15a7545ac96347baa65eda
3.53 KB / 3.53 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures
```
2017-11-01 15:24:59 +00:00
## SEE ALSO
2019-04-13 10:29:00 +00:00
podman(1), podman-load(1)
2017-11-01 15:24:59 +00:00
## HISTORY
July 2017, Originally compiled by Urvashi Mohnani < umohnani @ redhat . com >