mirror of
https://github.com/containers/podman.git
synced 2025-05-22 09:36:57 +08:00
Remove containers when pruning a stopped pod.
This path allows pod prune & pod rm to remove stopped containers in the pod before deleting the pod. PrunePods and RemovePod should be able to remove containers without force removal of stopped pods. Signed-off-by: Qi Wang <qiwan@redhat.com>
This commit is contained in:
@ -1,16 +1,21 @@
|
||||
% podman-pod-prune(1)
|
||||
|
||||
## NAME
|
||||
podman-pod-prune - Remove all stopped pods
|
||||
podman-pod-prune - Remove all stopped pods and their containers
|
||||
|
||||
## SYNOPSIS
|
||||
**podman pod prune**
|
||||
|
||||
## DESCRIPTION
|
||||
**podman pod prune** removes all stopped pods from local storage.
|
||||
**podman pod prune** removes all stopped pods and their containers from local storage.
|
||||
|
||||
## OPTIONS
|
||||
|
||||
**--force** **-f**
|
||||
Force removal of all running pods and their containers. The default is false.
|
||||
|
||||
## EXAMPLES
|
||||
Remove all stopped pods from local storage
|
||||
Remove all stopped pods and their containers from local storage
|
||||
```
|
||||
$ sudo podman pod prune
|
||||
22b8813332948064b6566370088c5e0230eeaf15a58b1c5646859fd9fc364fe7
|
||||
|
@ -1,13 +1,13 @@
|
||||
% podman-pod-rm(1)
|
||||
|
||||
## NAME
|
||||
podman\-pod\-rm - Remove one or more pods
|
||||
podman\-pod\-rm - Remove one or more stopped pods and containers
|
||||
|
||||
## SYNOPSIS
|
||||
**podman pod rm** [*options*] *pod*
|
||||
|
||||
## DESCRIPTION
|
||||
**podman pod rm** will remove one or more pods from the host. The pod name or ID can be used. The \-f option stops all containers and then removes them before removing the pod. Without the \-f option, a pod cannot be removed if it has associated containers.
|
||||
**podman pod rm** will remove one or more stopped pods and their containers from the host. The pod name or ID can be used. The \-f option stops all containers and then removes them before removing the pod.
|
||||
|
||||
## OPTIONS
|
||||
|
||||
|
@ -18,10 +18,10 @@ podman pod is a set of subcommands that manage pods, or groups of containers.
|
||||
| inspect | [podman-pod-inspect(1)](podman-pod-inspect.1.md) | Displays information describing a pod. |
|
||||
| kill | [podman-pod-kill(1)](podman-pod-kill.1.md) | Kill the main process of each container in one or more pods. |
|
||||
| pause | [podman-pod-pause(1)](podman-pod-pause.1.md) | Pause one or more pods. |
|
||||
| prune | [podman-pod-prune(1)](podman-pod-prune.1.md) | Remove all stopped pods. |
|
||||
| prune | [podman-pod-prune(1)](podman-pod-prune.1.md) | Remove all stopped pods and their containers. |
|
||||
| ps | [podman-pod-ps(1)](podman-pod-ps.1.md) | Prints out information about pods. |
|
||||
| restart | [podman-pod-restart(1)](podman-pod-restart.1.md) | Restart one or more pods. |
|
||||
| rm | [podman-pod-rm(1)](podman-pod-rm.1.md) | Remove one or more pods. |
|
||||
| rm | [podman-pod-rm(1)](podman-pod-rm.1.md) | Remove one or more stopped pods and containers. |
|
||||
| start | [podman-pod-start(1)](podman-pod-start.1.md) | Start one or more pods. |
|
||||
| stats | [podman-pod-stats(1)](podman-pod-stats.1.md) | Display a live stream of resource usage stats for containers in one or more pods. |
|
||||
| stop | [podman-pod-stop(1)](podman-pod-stop.1.md) | Stop one or more pods. |
|
||||
|
@ -11,13 +11,13 @@ Pod
|
||||
|
||||
:doc:`pause <markdown/podman-pause.1>` Pause one or more pods
|
||||
|
||||
:doc:`prune <markdown/podman-pod-prune.1>` Remove all stopped pods
|
||||
:doc:`prune <markdown/podman-pod-prune.1>` Remove all stopped pods and their containers
|
||||
|
||||
:doc:`ps <markdown/podman-pod-ps.1>` List pods
|
||||
|
||||
:doc:`restart <markdown/podman-pod-restart.1>` Restart one or more pods
|
||||
|
||||
:doc:`rm <markdown/podman-pod-rm.1>` Remove one or more pods
|
||||
:doc:`rm <markdown/podman-pod-rm.1>` Remove one or more stopped pods and containers
|
||||
|
||||
:doc:`start <markdown/podman-pod-start.1>` Start one or more pods
|
||||
|
||||
|
Reference in New Issue
Block a user