Skip to content

Commit f63953d

Browse files
Merge pull request containers#21714 from rhatdan/docs19
[CI:DOCS] Fix up example description of podman-export/export commands
2 parents f063f96 + de7cb63 commit f63953d

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

docs/source/markdown/podman-export.1.md

+4
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ Write to a file, default is STDOUT
3434

3535
## EXAMPLES
3636

37+
Export container into specified tar ball:
3738
```
3839
$ podman export -o redis-container.tar 883504668ec465463bc0fe7e63d53154ac3b696ea8d7b233748918664ea90e57
40+
```
3941

42+
Export container to stdout:
43+
```
4044
$ podman export 883504668ec465463bc0fe7e63d53154ac3b696ea8d7b233748918664ea90e57 > redis-container.tar
4145
```
4246

docs/source/markdown/podman-import.1.md

+6-11
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Set variant of the imported image.
5252

5353
## EXAMPLES
5454

55+
Import the selected tarball into new image, specifying the CMD, ENTRYPOINT and LABEL:
5556
```
5657
$ podman import --change CMD=/bin/bash --change ENTRYPOINT=/bin/sh --change LABEL=blue=image ctr.tar image-imported
5758
Getting image source signatures
@@ -64,6 +65,7 @@ Storing signatures
6465
db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
6566
```
6667

68+
Import the selected tarball into new image, specifying the CMD, ENTRYPOINT and LABEL:
6769
```
6870
$ podman import --change 'ENTRYPOINT ["/bin/sh","-c","test-image"]' --change LABEL=blue=image test-image.tar image-imported
6971
Getting image source signatures
@@ -73,22 +75,14 @@ Writing manifest to image destination
7375
Storing signatures
7476
110552350206337183ceadc0bdd646dc356e06514c548b69a8917b4182414b
7577
```
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-
8678

79+
Import new tagged image from stdin in quiet mode:
8780
```
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
8982
db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
9083
```
9184

85+
Import an image from stdin:
9286
```
9387
$ cat ctr.tar | podman import -
9488
Getting image source signatures
@@ -101,6 +95,7 @@ Storing signatures
10195
db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
10296
```
10397

98+
Import named image from tarball via a URL:
10499
```
105100
$ podman import http://example.com/ctr.tar url-image
106101
Downloading from "http://example.com/ctr.tar"

0 commit comments

Comments
 (0)