mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
podman {pod,} rm/stop: add --ignore flag
Add an --ignore flag to podman rm and stop. When specified, Podman will ignore "no such {container,pod}" errors that occur when a specified container/pod is not present in the store (anymore). The motivation behind adding this flag is to write more robust systemd services using Podman. A user might have manually decided to remove a container/pod which would lead to a failure during the `ExecStop` directive of a systemd service referencing that container/pod. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@ -15,6 +15,12 @@ podman\-pod\-rm - Remove one or more pods
|
||||
|
||||
Remove all pods. Can be used in conjunction with \-f as well.
|
||||
|
||||
**--ignore**, **-i**
|
||||
|
||||
Ignore errors when specified pods are not in the container store. A user might
|
||||
have decided to manually remove a pod which would lead to a failure during the
|
||||
ExecStop directive of a systemd service referencing that pod.
|
||||
|
||||
**--latest**, **-l**
|
||||
|
||||
Instead of providing the pod name or ID, remove the last created pod.
|
||||
|
@ -15,6 +15,12 @@ Stop containers in one or more pods. You may use pod IDs or names as input.
|
||||
|
||||
Stops all pods
|
||||
|
||||
**--ignore**, **-i**
|
||||
|
||||
Ignore errors when specified pods are not in the container store. A user might
|
||||
have decided to manually remove a pod which would lead to a failure during the
|
||||
ExecStop directive of a systemd service referencing that pod.
|
||||
|
||||
**--latest**, **-l**
|
||||
|
||||
Instead of providing the pod name or ID, stop the last created pod.
|
||||
|
@ -30,6 +30,12 @@ Containers could have been created by a different container engine.
|
||||
In addition, forcing can be used to remove unusable containers, e.g. containers
|
||||
whose OCI runtime has become unavailable.
|
||||
|
||||
**--ignore**, **-i**
|
||||
|
||||
Ignore errors when specified containers are not in the container store. A user
|
||||
might have decided to manually remove a container which would lead to a failure
|
||||
during the ExecStop directive of a systemd service referencing that container.
|
||||
|
||||
**--latest**, **-l**
|
||||
|
||||
Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
|
||||
|
@ -25,6 +25,12 @@ Stop all running containers. This does not include paused containers.
|
||||
|
||||
Read container ID from the specified file and remove the container. Can be specified multiple times.
|
||||
|
||||
**--ignore**, **-i**
|
||||
|
||||
Ignore errors when specified containers are not in the container store. A user
|
||||
might have decided to manually remove a container which would lead to a failure
|
||||
during the ExecStop directive of a systemd service referencing that container.
|
||||
|
||||
**--latest**, **-l**
|
||||
|
||||
Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
|
||||
|
Reference in New Issue
Block a user