diff --git a/docs/source/markdown/podman-export.1.md b/docs/source/markdown/podman-export.1.md index d024d0256a..fdf87c6d3c 100644 --- a/docs/source/markdown/podman-export.1.md +++ b/docs/source/markdown/podman-export.1.md @@ -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 ``` diff --git a/docs/source/markdown/podman-import.1.md b/docs/source/markdown/podman-import.1.md index 60b34013c8..5669b920b9 100644 --- a/docs/source/markdown/podman-import.1.md +++ b/docs/source/markdown/podman-import.1.md @@ -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"