summaryrefslogtreecommitdiff
path: root/docs/source/markdown/podman-cp.1.md
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2021-08-31 15:41:57 +0200
committerValentin Rothberg <rothberg@redhat.com>2021-08-31 17:30:58 +0200
commitd674eb41e46fcd93547ad475c3aca4f2378509fb (patch)
tree5b01a06d656173904a2394968e34926062574604 /docs/source/markdown/podman-cp.1.md
parent8ab84b437352bf2b3653fe92fbfa60a59b980a93 (diff)
downloadpodman-d674eb41e46fcd93547ad475c3aca4f2378509fb.tar.gz
podman-d674eb41e46fcd93547ad475c3aca4f2378509fb.tar.bz2
podman-d674eb41e46fcd93547ad475c3aca4f2378509fb.zip
[CI:DOCS] podman cp: highlight globbing and multi-file copy
`podman cp` does not allow for globbing or filtering copied data in any form. `docker cp` does not either, so Podman remains compatible. Due to a number of requests, highlight how users can effectively achieve that by means of chaining with tools such as xargs(1) or find(1), or by making use of `podman mount`. Closes: #11346 Closes: #11194 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'docs/source/markdown/podman-cp.1.md')
-rw-r--r--docs/source/markdown/podman-cp.1.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/source/markdown/podman-cp.1.md b/docs/source/markdown/podman-cp.1.md
index 79edf26ed..1929bed1f 100644
--- a/docs/source/markdown/podman-cp.1.md
+++ b/docs/source/markdown/podman-cp.1.md
@@ -52,6 +52,8 @@ Using `-` as the **src_path** streams the contents of `STDIN` as a tar archive.
Note that `podman cp` ignores permission errors when copying from a running rootless container. The TTY devices inside a rootless container are owned by the host's root user and hence cannot be read inside the container's user namespace.
+Further note that `podman cp` does not support globbing (e.g., `cp dir/*.txt`). If you want to copy multiple files from the host to the container you may use xargs(1) or find(1) (or similar tools for chaining commands) in conjunction with `podman cp`. If you want to copy multiple files from the container to the host, you may use `podman mount CONTAINER` and operate on the returned mount point instead (see ALTERNATIVES below).
+
## OPTIONS
#### **--archive**, **-a**=**true** | *false*