aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-06 09:40:39 -0800
committerGitHub <noreply@github.com>2019-03-06 09:40:39 -0800
commitef714756b783b8d28ac015ec8627bdf7e9706e6d (patch)
tree8f568317a3a7109acd5c45583a850d8e0e9046ab /docs
parentc6c0b54c361df623378706ca5e41faac309ab7ac (diff)
parentd9e1b2c47006483300692f39ad553271b5b6eab2 (diff)
downloadpodman-ef714756b783b8d28ac015ec8627bdf7e9706e6d.tar.gz
podman-ef714756b783b8d28ac015ec8627bdf7e9706e6d.tar.bz2
podman-ef714756b783b8d28ac015ec8627bdf7e9706e6d.zip
Merge pull request #2532 from QiWang19/i2520
add flag --extract tar file in podman cp
Diffstat (limited to 'docs')
-rw-r--r--docs/podman-cp.1.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/podman-cp.1.md b/docs/podman-cp.1.md
index 37426b236..7774542e8 100644
--- a/docs/podman-cp.1.md
+++ b/docs/podman-cp.1.md
@@ -54,6 +54,11 @@ You can also use : when specifying paths to a **SRC_PATH** or **DEST_PATH** on a
If you use a : in a local machine path, you must be explicit with a relative or absolute path, for example:
`/path/to/file:name.txt` or `./file:name.txt`
+## OPTIONS
+
+**--extract**
+
+Extract the tar file into the destination directory. If the destination directory is not provided, extract the tar file into the root directory.
## ALTERNATIVES
@@ -100,5 +105,7 @@ podman cp containerID:/myapp/ /myapp/
podman cp containerID:/home/myuser/. /home/myuser/
+podman cp --extract /home/myuser/myfiles.tar.gz containerID:/myfiles
+
## SEE ALSO
podman(1), podman-mount(1), podman-umount(1)