Add --time out for podman * rm -f commands

Add --time flag to podman container rm
Add --time flag to podman pod rm
Add --time flag to podman volume rm
Add --time flag to podman network rm

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2021-09-30 14:43:39 -04:00
parent 36821d302e
commit 21c9dc3c40
81 changed files with 346 additions and 196 deletions

View File

@ -15,6 +15,10 @@ Delete one or more Podman networks.
The `force` option will remove all containers that use the named network. If the container is
running, the container will be stopped and removed.
#### **--time**, **-t**=*seconds*
Seconds to wait before forcibly stopping the running containers that are using the specified network. The --force option must be specified to use the --time option.
## EXAMPLE
Delete the `cni-podman9` network

View File

@ -33,6 +33,10 @@ Stop running containers and delete all stopped containers before removal of pod.
Read pod ID from the specified file and remove the pod. Can be specified multiple times.
#### **--time**, **-t**=*seconds*
Seconds to wait before forcibly stopping running containers within the pod. The --force option must be specified to use the --time option.
## EXAMPLE
podman pod rm mywebserverpod

View File

@ -25,9 +25,9 @@ ExecStop directive of a systemd service referencing that pod.
Instead of providing the pod name or ID, stop the last created pod. (This option is not available with the remote Podman client)
#### **--time**, **-t**=*time*
#### **--time**, **-t**=*seconds*
Timeout to wait before forcibly stopping the containers in the pod.
Seconds to wait before forcibly stopping the containers in the pod.
#### **--pod-id-file**

View File

@ -24,9 +24,9 @@ to run containers such as CRI-O, the last started container could be from either
#### **--running**
Restart all containers that are already in the *running* state.
#### **--time**=*time*, **-t**
Timeout to wait before forcibly stopping the container.
#### **--time**, **-t**=*seconds*
Seconds to wait before forcibly stopping the container.
## EXAMPLES

View File

@ -41,6 +41,10 @@ during the ExecStop directive of a systemd service referencing that container.
Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
to run containers such as CRI-O, the last started container could be from either of those methods. (This option is not available with the remote Podman client)
#### **--time**, **-t**=*seconds*
Seconds to wait before forcibly stopping the container. The --force option must be specified to use the --time option.
#### **--volumes**, **-v**
Remove anonymous volumes associated with the container. This does not include named volumes

View File

@ -36,9 +36,9 @@ during the ExecStop directive of a systemd service referencing that container.
Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
to run containers such as CRI-O, the last started container could be from either of those methods. (This option is not available with the remote Podman client)
#### **--time**, **-t**=*time*
#### **--time**, **-t**=*seconds*
Time to wait before forcibly stopping the container
Seconds to wait before forcibly stopping the container
## EXAMPLES

View File

@ -28,6 +28,9 @@ If it is being used by containers, the containers will be removed first.
Print usage statement
#### **--time**, **-t**=*seconds*
Seconds to wait before forcibly stopping running containers that are using the specified volume. The --force option must be specified to use the --time option.
## EXAMPLES