Skip to content

Commit b74a717

Browse files
Merge pull request #26403 from jobselko/fix_26358
Update podman system prune doc
2 parents 282bcd8 + fd325e3 commit b74a717

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/source/markdown/podman-system-prune.1.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,19 @@ Prune volumes currently unused by any container
6565

6666
## EXAMPLES
6767

68+
Prune all containers, pods, networks and dangling images.
69+
```
70+
$ podman system prune
71+
WARNING! This command removes:
72+
- all stopped containers
73+
- all networks not used by at least one container
74+
- all dangling images
75+
- all dangling build cache
76+
77+
Are you sure you want to continue? [y/N] y
78+
Total reclaimed space: 0B
79+
```
80+
6881
Prune all containers, pods, and networks that are not in use.
6982
```
7083
$ podman system prune --all
@@ -89,6 +102,24 @@ podman-default-kube-network
89102
Total reclaimed space: 3.372GB
90103
```
91104

105+
Prune all containers, build containers, pods, networks and dangling images.
106+
```
107+
$ podman system prune --build
108+
WARNING! This command removes:
109+
- all stopped containers
110+
- all networks not used by at least one container
111+
- all build containers
112+
- all dangling images
113+
- all dangling build cache
114+
115+
Are you sure you want to continue? [y/N] y
116+
Deleted Containers
117+
a8bfed41990114767c933d27bf5508b01cdc0f641dc36037b349648347c6ea64
118+
Deleted Images
119+
055733a33e7a78efa27d3c682df97a9e0489133bef071745144c8d0edda2d708
120+
Total reclaimed space: 1.4GB
121+
```
122+
92123
## SEE ALSO
93124
**[podman(1)](podman.1.md)**, **[podman-system(1)](podman-system.1.md)**
94125

0 commit comments

Comments
 (0)