Update podman system prune doc

Fixes #26358

Signed-off-by: Jitka Obselkova <jobselko@redhat.com>
This commit is contained in:
Jitka Obselkova
2025-06-13 11:36:05 +02:00
parent dbc8b93e0f
commit fd325e33fd

View File

@ -65,6 +65,19 @@ Prune volumes currently unused by any container
## EXAMPLES
Prune all containers, pods, networks and dangling images.
```
$ podman system prune
WARNING! This command removes:
- all stopped containers
- all networks not used by at least one container
- all dangling images
- all dangling build cache
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
```
Prune all containers, pods, and networks that are not in use.
```
$ podman system prune --all
@ -89,6 +102,24 @@ podman-default-kube-network
Total reclaimed space: 3.372GB
```
Prune all containers, build containers, pods, networks and dangling images.
```
$ podman system prune --build
WARNING! This command removes:
- all stopped containers
- all networks not used by at least one container
- all build containers
- all dangling images
- all dangling build cache
Are you sure you want to continue? [y/N] y
Deleted Containers
a8bfed41990114767c933d27bf5508b01cdc0f641dc36037b349648347c6ea64
Deleted Images
055733a33e7a78efa27d3c682df97a9e0489133bef071745144c8d0edda2d708
Total reclaimed space: 1.4GB
```
## SEE ALSO
**[podman(1)](podman.1.md)**, **[podman-system(1)](podman-system.1.md)**