mirror of
https://github.com/containers/podman.git
synced 2025-06-19 08:09:12 +08:00
Setup a reasonable default for pids-limit 4096
CRI-O defaults to 1024 for the maximum pids in a container. Podman should have a similar limit. Once we have a containers.conf, we can set the limit in this file, and have it easily customizable. Currently the documentation says that -1 sets pids-limit=max, but -1 fails. This patch allows -1, but also indicates that 0 also sets the max pids limit. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -552,7 +552,7 @@ Default is to create a private PID namespace for the container
|
||||
|
||||
**--pids-limit**=*limit*
|
||||
|
||||
Tune the container's pids limit. Set `-1` to have unlimited pids for the container.
|
||||
Tune the container's pids limit. Set `0` to have unlimited pids for the container. (default "4096" on systems that support PIDS cgroups).
|
||||
|
||||
**--pod**=*name*
|
||||
|
||||
|
@ -565,7 +565,7 @@ Default is to create a private PID namespace for the container
|
||||
|
||||
**--pids-limit**=*limit*
|
||||
|
||||
Tune the container's pids limit. Set `-1` to have unlimited pids for the container.
|
||||
Tune the container's pids limit. Set `0` to have unlimited pids for the container. (default "4096" on systems that support PIDS cgroups).
|
||||
|
||||
**--pod**=*name*
|
||||
|
||||
|
Reference in New Issue
Block a user