Fix default to pause in podman cp

We want to default to secure when running containers as root,
in rootless, we need to change the default if the system does not
support cgroup v1.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2019-09-13 12:44:50 -04:00
parent 0079c24ec1
commit a481a1265a
2 changed files with 14 additions and 2 deletions

View File

@ -65,7 +65,7 @@ Extract the tar file into the destination directory. If the destination director
**--pause**
Pause the container while copying into it to avoid potential security issues around symlinks. Defaults to *false*.
Pause the container while copying into it to avoid potential security issues around symlinks. Defaults to *true*. On rootless containers with cgroups V1, defaults to false.
## ALTERNATIVES