mirror of
https://github.com/containers/podman.git
synced 2025-06-05 05:57:24 +08:00
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:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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**
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user