summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-05-09 19:35:53 +0200
committerGitHub <noreply@github.com>2019-05-09 19:35:53 +0200
commitd54a2d2f81df98bb49580ef8455bdc043dd4fdf7 (patch)
treed7e1f069992e81d12e8b750d3012cf1831fe0041 /docs
parentd8a065dab377a7bf48680d53d0839b2c7f62d003 (diff)
parent4479b8eec3558daedfd519d577bf63a17f4b2642 (diff)
downloadpodman-d54a2d2f81df98bb49580ef8455bdc043dd4fdf7.tar.gz
podman-d54a2d2f81df98bb49580ef8455bdc043dd4fdf7.tar.bz2
podman-d54a2d2f81df98bb49580ef8455bdc043dd4fdf7.zip
Merge pull request #3041 from QiWang19/cpdash
implement cp reads tar file from stdin/to stdout
Diffstat (limited to 'docs')
-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)