Quadlet - add StopTimeout key for .container file

Allow setting the timeout for stopping the container
Add test
Update man

Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
This commit is contained in:
Ygal Blum
2024-01-03 15:27:30 +02:00
parent 185fa5ba3f
commit 689d97a1d1
4 changed files with 21 additions and 0 deletions

View File

@ -212,6 +212,7 @@ Valid options for `[Container]` are listed below:
| SecurityLabelNested=true | --security-opt label=nested |
| SecurityLabelType=spc_t | --security-opt label=type:spc_t |
| ShmSize=100m | --shm-size=100m |
| StopTimeout=20 | --stop-timeout=20 |
| SubGIDMap=gtest | --subgidname=gtest |
| SubUIDMap=utest | --subuidname=utest |
| Sysctl=name=value | --sysctl=name=value |
@ -616,6 +617,14 @@ Size of /dev/shm.
This is equivalent to the Podman `--shm-size` option and generally has the form `number[unit]`
### `StopTimeout=`
Seconds to wait before forcibly stopping the container.
Note, this value should be lower than the actual systemd unit timeout to make sure the podman rm command is not killed by systemd.
This is equivalent to the Podman `--stop-timeout` option
### `SubGIDMap=`
Run the container in a new user namespace using the map with name in the /etc/subgid file.