diff options
author | Qi Wang <qiwan@redhat.com> | 2019-03-04 16:49:27 -0500 |
---|---|---|
committer | Qi Wang <qiwan@redhat.com> | 2019-03-06 10:06:25 -0500 |
commit | d9e1b2c47006483300692f39ad553271b5b6eab2 (patch) | |
tree | 16bd8dc8f334725feb2c97194662a7404ff092c2 /docs/podman-cp.1.md | |
parent | 7418ff988b520466d04cacf6d88b50d67bfa8ddf (diff) | |
download | podman-d9e1b2c47006483300692f39ad553271b5b6eab2.tar.gz podman-d9e1b2c47006483300692f39ad553271b5b6eab2.tar.bz2 podman-d9e1b2c47006483300692f39ad553271b5b6eab2.zip |
add flag --extract tar file in podman cp
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'docs/podman-cp.1.md')
-rw-r--r-- | docs/podman-cp.1.md | 7 |
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) |