Add support for passing container stop timeout as -1 (infinite)

Compat api for containers/stop should take -1 value

Add support for `podman stop --time -1`
Add support for `podman restart --time -1`
Add support for `podman rm --time -1`
Add support for `podman pod stop --time -1`
Add support for `podman pod rm --time -1`
Add support for `podman volume rm --time -1`
Add support for `podman network rm --time -1`

Fixes: https://github.com/containers/podman/issues/17542

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2023-07-29 08:08:31 -04:00
parent 1440985877
commit 1e54539432
24 changed files with 73 additions and 40 deletions

View File

@ -5,4 +5,4 @@
#### **--stop-timeout**=*seconds*
Timeout to stop a container. Default is **10**.
Remote connections use local containers.conf for defaults
Remote connections use local containers.conf for defaults.

View File

@ -5,3 +5,4 @@
#### **--time**, **-t**=*seconds*
Seconds to wait before forcibly stopping <<the container|running containers within the pod>>.
Use -1 for infinite wait.