@@ -52,6 +52,7 @@ Set variant of the imported image.
52
52
53
53
## EXAMPLES
54
54
55
+ Import the selected tarball into new image, specifying the CMD, ENTRYPOINT and LABEL:
55
56
```
56
57
$ podman import --change CMD=/bin/bash --change ENTRYPOINT=/bin/sh --change LABEL=blue=image ctr.tar image-imported
57
58
Getting image source signatures
@@ -64,6 +65,7 @@ Storing signatures
64
65
db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
65
66
```
66
67
68
+ Import the selected tarball into new image, specifying the CMD, ENTRYPOINT and LABEL:
67
69
```
68
70
$ podman import --change 'ENTRYPOINT ["/bin/sh","-c","test-image"]' --change LABEL=blue=image test-image.tar image-imported
69
71
Getting image source signatures
@@ -73,22 +75,14 @@ Writing manifest to image destination
73
75
Storing signatures
74
76
110552350206337183ceadc0bdd646dc356e06514c548b69a8917b4182414b
75
77
```
76
- ```
77
- $ podman import --change "CMD /bin/sh" --change LABEL=blue=image test-image.tar image-imported
78
- Getting image source signatures
79
- Copying blob e3b0c44298fc skipped: already exists
80
- Copying config ae9a27e249 done
81
- Writing manifest to image destination
82
- Storing signatures
83
- ae9a27e249f801aff11a4ba54a81751ea9fbc9db45a6df3f1bfd63fc2437bb9c
84
- ```
85
-
86
78
79
+ Import new tagged image from stdin in quiet mode:
87
80
```
88
- $ cat ctr.tar | podman -q import --message "importing the ctr.tar tarball " - image-imported
81
+ $ cat ctr.tar | podman -q import --message "importing the ctr.tar file " - image-imported
89
82
db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
90
83
```
91
84
85
+ Import an image from stdin:
92
86
```
93
87
$ cat ctr.tar | podman import -
94
88
Getting image source signatures
@@ -101,6 +95,7 @@ Storing signatures
101
95
db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
102
96
```
103
97
98
+ Import named image from tarball via a URL:
104
99
```
105
100
$ podman import http://example.com/ctr.tar url-image
106
101
Downloading from "http://example.com/ctr.tar"
0 commit comments