1podman-save(1)()                                              podman-save(1)()
2
3
4

NAME

6       podman-save - Save image(s) to an archive
7
8

SYNOPSIS

10       podman save [options] name[:tag]
11
12
13       podman image save [options] name[:tag]
14
15

DESCRIPTION

17       podman  save  saves  an  image  to  either docker-archive, oci-archive,
18       oci-dir (directory with oci manifest type),  or  docker-dir  (directory
19       with  v2s2  manifest  type) on the local machine, default is docker-ar‐
20       chive. podman save writes to STDOUT by default and can be redirected to
21       a file using the output flag. The quiet flag suppresses the output when
22       set.  podman save will save parent layers of the image(s) and  the  im‐
23       age(s)  can be loaded using podman load.  To export the containers, use
24       the podman export.  Note: : is a restricted  character  and  cannot  be
25       part of the file name.
26
27
28       podman [GLOBAL OPTIONS]
29
30
31       podman save [GLOBAL OPTIONS]
32
33
34       podman save [OPTIONS] NAME[:TAG]
35
36

OPTIONS

38   --compress
39       Compress  tarball  image  layers  when pushing to a directory using the
40       'dir' transport. (default is same compression type, compressed  or  un‐
41       compressed,  as  source) Note: This flag can only be set when using the
42       dir transport i.e --format=oci-dir or --format=docker-dir
43
44
45   --output, -o=file
46       Write to a file, default is STDOUT
47
48
49   --format=format
50       Save image to oci-archive, oci-dir (directory with oci manifest  type),
51       or docker-dir (directory with v2s2 manifest type)
52
53
54              --format oci-archive
55              --format oci-dir
56              --format docker-dir
57
58
59
60   --multi-image-archive, -m
61       Allow for creating archives with more than one image.  Additional names
62       will be interpreted as images instead  of  tags.   Only  supported  for
63       docker-archive.   The  default  for this option can be modified via the
64       multi_image_archive="true"|"false" flag in containers.conf.
65
66
67   --quiet, -q
68       Suppress the output
69
70
71   --help, -h
72       Print usage statement
73
74

EXAMPLES

76              $ podman save --quiet -o alpine.tar alpine:2.6
77
78
79
80              $ podman save > alpine-all.tar alpine
81
82
83
84              $ podman save -o oci-alpine.tar --format oci-archive alpine
85
86
87
88              $ podman save --compress --format oci-dir -o alp-dir alpine
89              Getting image source signatures
90              Copying blob sha256:2fdfe1cd78c20d05774f0919be19bc1a3e4729bce219968e4188e7e0f1af679d
91               1.97 MB / 1.97 MB [========================================================] 0s
92              Copying config sha256:501d1a8f0487e93128df34ea349795bc324d5e0c0d5112e08386a9dfaff620be
93               584 B / 584 B [============================================================] 0s
94              Writing manifest to image destination
95              Storing signatures
96
97
98
99              $ podman save --format docker-dir -o ubuntu-dir ubuntu
100              Getting image source signatures
101              Copying blob sha256:660c48dd555dcbfdfe19c80a30f557ac57a15f595250e67bfad1e5663c1725bb
102               45.55 MB / 45.55 MB [======================================================] 8s
103              Copying blob sha256:4c7380416e7816a5ab1f840482c9c3ca8de58c6f3ee7f95e55ad299abbfe599f
104               846 B / 846 B [============================================================] 0s
105              Copying blob sha256:421e436b5f80d876128b74139531693be9b4e59e4f1081c9a3c379c95094e375
106               620 B / 620 B [============================================================] 0s
107              Copying blob sha256:e4ce6c3651b3a090bb43688f512f687ea6e3e533132bcbc4a83fb97e7046cea3
108               849 B / 849 B [============================================================] 0s
109              Copying blob sha256:be588e74bd348ce48bb7161350f4b9d783c331f37a853a80b0b4abc0a33c569e
110               169 B / 169 B [============================================================] 0s
111              Copying config sha256:20c44cd7596ff4807aef84273c99588d22749e2a7e15a7545ac96347baa65eda
112               3.53 KB / 3.53 KB [========================================================] 0s
113              Writing manifest to image destination
114              Storing signatures
115
116
117

SEE ALSO

119       podman(1), podman-load(1), containers.conf(5)
120
121

HISTORY

123       July 2017, Originally compiled by Urvashi  Mohnani  umohnani@redhat.com
124       ⟨mailto:umohnani@redhat.com⟩
125
126
127
128                                                              podman-save(1)()
Impressum