mirror of
https://github.com/containers/podman.git
synced 2025-05-20 08:36:23 +08:00
Merge pull request #21714 from rhatdan/docs19
[CI:DOCS] Fix up example description of podman-export/export commands
This commit is contained in:
@ -34,9 +34,13 @@ Write to a file, default is STDOUT
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
Export container into specified tar ball:
|
||||
```
|
||||
$ podman export -o redis-container.tar 883504668ec465463bc0fe7e63d53154ac3b696ea8d7b233748918664ea90e57
|
||||
```
|
||||
|
||||
Export container to stdout:
|
||||
```
|
||||
$ podman export 883504668ec465463bc0fe7e63d53154ac3b696ea8d7b233748918664ea90e57 > redis-container.tar
|
||||
```
|
||||
|
||||
|
@ -52,6 +52,7 @@ Set variant of the imported image.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
Import the selected tarball into new image, specifying the CMD, ENTRYPOINT and LABEL:
|
||||
```
|
||||
$ podman import --change CMD=/bin/bash --change ENTRYPOINT=/bin/sh --change LABEL=blue=image ctr.tar image-imported
|
||||
Getting image source signatures
|
||||
@ -64,6 +65,7 @@ Storing signatures
|
||||
db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
|
||||
```
|
||||
|
||||
Import the selected tarball into new image, specifying the CMD, ENTRYPOINT and LABEL:
|
||||
```
|
||||
$ podman import --change 'ENTRYPOINT ["/bin/sh","-c","test-image"]' --change LABEL=blue=image test-image.tar image-imported
|
||||
Getting image source signatures
|
||||
@ -73,22 +75,14 @@ Writing manifest to image destination
|
||||
Storing signatures
|
||||
110552350206337183ceadc0bdd646dc356e06514c548b69a8917b4182414b
|
||||
```
|
||||
```
|
||||
$ podman import --change "CMD /bin/sh" --change LABEL=blue=image test-image.tar image-imported
|
||||
Getting image source signatures
|
||||
Copying blob e3b0c44298fc skipped: already exists
|
||||
Copying config ae9a27e249 done
|
||||
Writing manifest to image destination
|
||||
Storing signatures
|
||||
ae9a27e249f801aff11a4ba54a81751ea9fbc9db45a6df3f1bfd63fc2437bb9c
|
||||
```
|
||||
|
||||
|
||||
Import new tagged image from stdin in quiet mode:
|
||||
```
|
||||
$ cat ctr.tar | podman -q import --message "importing the ctr.tar tarball" - image-imported
|
||||
$ cat ctr.tar | podman -q import --message "importing the ctr.tar file" - image-imported
|
||||
db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
|
||||
```
|
||||
|
||||
Import an image from stdin:
|
||||
```
|
||||
$ cat ctr.tar | podman import -
|
||||
Getting image source signatures
|
||||
@ -101,6 +95,7 @@ Storing signatures
|
||||
db65d991f3bbf7f31ed1064db9a6ced7652e3f8166c4736aa9133dadd3c7acb3
|
||||
```
|
||||
|
||||
Import named image from tarball via a URL:
|
||||
```
|
||||
$ podman import http://example.com/ctr.tar url-image
|
||||
Downloading from "http://example.com/ctr.tar"
|
||||
|
Reference in New Issue
Block a user