Merge pull request #17207 from danishprakash/add-systemd-shm-size

add support for limiting tmpfs size for systemd-specific mnts
This commit is contained in:
OpenShift Merge Robot
2023-02-15 05:53:40 -05:00
committed by GitHub
18 changed files with 118 additions and 3 deletions

View File

@ -0,0 +1,10 @@
####> This option file is used in:
####> podman create, pod clone, pod create, run
####> If file is edited, make sure the changes
####> are applicable to all of those.
#### **--shm-size-systemd**=*number[unit]*
Size of systemd-specific tmpfs mounts such as /run, /run/lock, /var/log/journal and /tmp.
A _unit_ can be **b** (bytes), **k** (kibibytes), **m** (mebibytes), or **g** (gibibytes).
If the unit is omitted, the system uses bytes. If the size is omitted, the default is **64m**.
When _size_ is **0**, the usage is limited to 50% of the host's available memory.

View File

@ -328,6 +328,8 @@ Automatically remove the container when it exits. The default is *false*.
@@option shm-size
@@option shm-size-systemd
@@option stop-signal
@@option stop-timeout

View File

@ -71,6 +71,8 @@ Set a custom name for the cloned pod. The default if not specified is of the syn
@@option shm-size
@@option shm-size-systemd
#### **--start**
When set to true, this flag starts the newly created pod after the

View File

@ -157,6 +157,8 @@ Note: This options conflict with **--share=cgroup** since that would set the pod
@@option shm-size
@@option shm-size-systemd
@@option subgidname
@@option subuidname

View File

@ -358,6 +358,8 @@ container is using it. The default is *false*.
@@option shm-size
@@option shm-size-systemd
@@option sig-proxy
The default is **true**.