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

NAME

6       podman-import - Import a tarball and save it as a filesystem image
7
8

SYNOPSIS

10       podman import [options] path [reference]
11
12
13       podman image import [options] path [reference]
14
15

DESCRIPTION

17       podman  import  imports a tarball (.tar, .tar.gz, .tgz, .bzip, .tar.xz,
18       .txz) and saves it as a filesystem image. Remote tarballs can be speci‐
19       fied  using  a  URL.  Various image instructions can be configured with
20       the --change flag and a commit message can be set using  the  --message
21       flag.  reference, if present, is a tag to assign to the image.  Note: :
22       is a restricted character and cannot be part of the file name.
23
24

OPTIONS

26       -c, --change=instruction
27
28
29       Apply the following possible instructions to the created image:  CMD  |
30       ENTRYPOINT  |  ENV  |  EXPOSE  |  LABEL  | STOPSIGNAL | USER | VOLUME |
31       WORKDIR Can be set multiple times
32
33
34       --message, -m=message
35
36
37       Set commit message for imported image
38
39
40       --quiet, -q
41
42
43       Shows progress on the import
44
45
46       -verbose
47
48
49       Print additional debugging information
50
51
52       --help, -h
53
54
55       Print usage statement
56
57

EXAMPLES

59              $ podman import --change CMD=/bin/bash --change ENTRYPOINT=/bin/sh --change LABEL=blue=image ctr.tar image-imported
60              Getting image source signatures
61              Copying blob sha256:b41deda5a2feb1f03a5c1bb38c598cbc12c9ccd675f438edc6acd815f7585b86
62               25.80 MB / 25.80 MB [======================================================] 0s
63              Copying config sha256:c16a6d30f3782288ec4e7521c754acc29d37155629cb39149756f486dae2d4cd
64               448 B / 448 B [============================================================] 0s
65              Writing manifest to image destination
66              Storing signatures
67              db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
68
69
70
71              $ podman import --change "ENTRYPOINT ["/bin/sh","-c","test-image"]"  --change LABEL=blue=image test-image.tar image-imported
72              Getting image source signatures
73              Copying blob e3b0c44298fc skipped: already exists
74              Copying config 1105523502 done
75              Writing manifest to image destination
76              Storing signatures
77              110552350206337183ceadc0bdd646dc356e06514c548b69a8917b4182414b
78
79
80
81              $ podman import --change "CMD /bin/sh"  --change LABEL=blue=image test-image.tar image-imported
82              Getting image source signatures
83              Copying blob e3b0c44298fc skipped: already exists
84              Copying config ae9a27e249 done
85              Writing manifest to image destination
86              Storing signatures
87              ae9a27e249f801aff11a4ba54a81751ea9fbc9db45a6df3f1bfd63fc2437bb9c
88
89
90
91              $ cat ctr.tar | podman -q import --message "importing the ctr.tar tarball" - image-imported
92              db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
93
94
95
96              $ cat ctr.tar | podman import -
97              Getting image source signatures
98              Copying blob sha256:b41deda5a2feb1f03a5c1bb38c598cbc12c9ccd675f438edc6acd815f7585b86
99               25.80 MB / 25.80 MB [======================================================] 0s
100              Copying config sha256:d61387b4d5edf65edee5353e2340783703074ffeaaac529cde97a8357eea7645
101               378 B / 378 B [============================================================] 0s
102              Writing manifest to image destination
103              Storing signatures
104              db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
105
106
107
108              $ podman import http://example.com/ctr.tar url-image
109              Downloading from "http://example.com/ctr.tar"
110              Getting image source signatures
111              Copying blob sha256:b41deda5a2feb1f03a5c1bb38c598cbc12c9ccd675f438edc6acd815f7585b86
112               25.80 MB / 25.80 MB [======================================================] 0s
113              Copying config sha256:5813fe8a3b18696089fd09957a12e88bda43dc1745b5240879ffffe93240d29a
114               419 B / 419 B [============================================================] 0s
115              Writing manifest to image destination
116              Storing signatures
117              db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
118
119
120

SEE ALSO

122       podman(1), podman-export(1)
123
124

HISTORY

126       November 2017, Originally compiled  by  Urvashi  Mohnani  umohnani@red‐
127       hat.com ⟨mailto:umohnani@redhat.com⟩
128
129
130
131                                                            podman-import(1)()
Impressum