1podman-save(1)() podman-save(1)()
2
3
4
6 podman-save - Save an image to a container archive
7
8
10 podman save [options] name[:tag]
11
12
13 podman image save [options] name[:tag]
14
15
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. Note: : is a restricted character and cannot be part of the file
23 name.
24
25
26 podman [GLOBAL OPTIONS]
27
28
29 podman save [GLOBAL OPTIONS]
30
31
32 podman save [OPTIONS] NAME[:TAG]
33
34
36 --compress
37
38
39 Compress tarball image layers when pushing to a directory using the
40 'dir' transport. (default is same compression type, compressed or
41 uncompressed, 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
47
48 Write to a file, default is STDOUT
49
50
51 --format=format
52
53
54 Save image to oci-archive, oci-dir (directory with oci manifest type),
55 or docker-dir (directory with v2s2 manifest type)
56
57
58 --format oci-archive
59 --format oci-dir
60 --format docker-dir
61
62
63
64 --quiet, -q
65
66
67 Suppress the output
68
69
70 --help, -h
71
72
73 Print usage statement
74
75
77 $ podman save --quiet -o alpine.tar alpine:2.6
78
79
80
81 $ podman save > alpine-all.tar alpine
82
83
84
85 $ podman save -o oci-alpine.tar --format oci-archive alpine
86
87
88
89 $ podman save --compress --format oci-dir -o alp-dir alpine
90 Getting image source signatures
91 Copying blob sha256:2fdfe1cd78c20d05774f0919be19bc1a3e4729bce219968e4188e7e0f1af679d
92 1.97 MB / 1.97 MB [========================================================] 0s
93 Copying config sha256:501d1a8f0487e93128df34ea349795bc324d5e0c0d5112e08386a9dfaff620be
94 584 B / 584 B [============================================================] 0s
95 Writing manifest to image destination
96 Storing signatures
97
98
99
100 $ podman save --format docker-dir -o ubuntu-dir ubuntu
101 Getting image source signatures
102 Copying blob sha256:660c48dd555dcbfdfe19c80a30f557ac57a15f595250e67bfad1e5663c1725bb
103 45.55 MB / 45.55 MB [======================================================] 8s
104 Copying blob sha256:4c7380416e7816a5ab1f840482c9c3ca8de58c6f3ee7f95e55ad299abbfe599f
105 846 B / 846 B [============================================================] 0s
106 Copying blob sha256:421e436b5f80d876128b74139531693be9b4e59e4f1081c9a3c379c95094e375
107 620 B / 620 B [============================================================] 0s
108 Copying blob sha256:e4ce6c3651b3a090bb43688f512f687ea6e3e533132bcbc4a83fb97e7046cea3
109 849 B / 849 B [============================================================] 0s
110 Copying blob sha256:be588e74bd348ce48bb7161350f4b9d783c331f37a853a80b0b4abc0a33c569e
111 169 B / 169 B [============================================================] 0s
112 Copying config sha256:20c44cd7596ff4807aef84273c99588d22749e2a7e15a7545ac96347baa65eda
113 3.53 KB / 3.53 KB [========================================================] 0s
114 Writing manifest to image destination
115 Storing signatures
116
117
118
120 podman(1), podman-load(1)
121
122
124 July 2017, Originally compiled by Urvashi Mohnani umohnani@redhat.com
125 ⟨mailto:umohnani@redhat.com⟩
126
127
128
129 podman-save(1)()