diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-06-10 07:52:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 07:52:46 -0400 |
commit | efc1936c7c591cb3b552246ff4687c8631456168 (patch) | |
tree | 057d0f294bf22414526a033b48af2fa41edb93a2 /docs/source/markdown/podman-cp.1.md | |
parent | 9f1bd0a0a1494f46a49ca7f22511c5a78006afd8 (diff) | |
parent | d4272bed51e2060d431ad042e803770e4d2fe64e (diff) | |
download | podman-efc1936c7c591cb3b552246ff4687c8631456168.tar.gz podman-efc1936c7c591cb3b552246ff4687c8631456168.tar.bz2 podman-efc1936c7c591cb3b552246ff4687c8631456168.zip |
Merge pull request #14526 from vrothberg/fix-14420
podman cp: do not overwrite non-dirs with dirs and vice versa
Diffstat (limited to 'docs/source/markdown/podman-cp.1.md')
-rw-r--r-- | docs/source/markdown/podman-cp.1.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/source/markdown/podman-cp.1.md b/docs/source/markdown/podman-cp.1.md index 0c375675d..bb86e3f13 100644 --- a/docs/source/markdown/podman-cp.1.md +++ b/docs/source/markdown/podman-cp.1.md @@ -63,6 +63,10 @@ When set to true, files copied to a container will have changed ownership to the When set to false, maintain uid/gid from archive sources instead of changing them to the primary uid/gid of the destination container. The default is **true**. +#### **--overwrite** + +Allow directories to be overwritten with non-directories and vice versa. By default, `podman cp` errors out when attempting to overwrite, for instance, a regular file with a directory. Use this option, if you want to allow this behavior. + ## ALTERNATIVES Podman has much stronger capabilities than just `podman cp` to achieve copying files between the host and containers. |