summaryrefslogtreecommitdiff
path: root/docs/podman-cp.1.md
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2019-04-26 17:27:06 -0400
committerQi Wang <qiwan@redhat.com>2019-05-09 10:12:39 -0400
commit4479b8eec3558daedfd519d577bf63a17f4b2642 (patch)
treeafd9fda59818e1f52345c35c012ad2c32a450b09 /docs/podman-cp.1.md
parent83700a74f82f849146a890ca28a8968107e79910 (diff)
downloadpodman-4479b8eec3558daedfd519d577bf63a17f4b2642.tar.gz
podman-4479b8eec3558daedfd519d577bf63a17f4b2642.tar.bz2
podman-4479b8eec3558daedfd519d577bf63a17f4b2642.zip
implement cp reads tar file from stdin/stdout
enables podman cp uses - to stream a tar archive from STDIN or to STDOUT. Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'docs/podman-cp.1.md')
-rw-r--r--docs/podman-cp.1.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/podman-cp.1.md b/docs/podman-cp.1.md
index 44612003d..406dd51df 100644
--- a/docs/podman-cp.1.md
+++ b/docs/podman-cp.1.md
@@ -8,6 +8,7 @@ podman\-cp - Copy files/folders between a container and the local filesystem
## DESCRIPTION
Copies the contents of **src_path** to the **dest_path**. You can copy from the containers's filesystem to the local machine or the reverse, from the local filesystem to the container.
+If - is specified for either the SRC_PATH or DEST_PATH, you can also stream a tar archive from STDIN or to STDOUT.
The CONTAINER can be a running or stopped container. The **src_path** or **dest_path** can be a file or directory.
@@ -107,5 +108,7 @@ podman cp containerID:/home/myuser/. /home/myuser/
podman cp --extract /home/myuser/myfiles.tar.gz containerID:/myfiles
+podman cp - containerID:/myfiles.tar.gz < myfiles.tar.gz
+
## SEE ALSO
podman(1), podman-mount(1), podman-umount(1)