From 4479b8eec3558daedfd519d577bf63a17f4b2642 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Fri, 26 Apr 2019 17:27:06 -0400 Subject: 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 --- docs/podman-cp.1.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') 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) -- cgit v1.2.3-54-g00ecf