@@ -65,6 +65,19 @@ Prune volumes currently unused by any container
65
65
66
66
## EXAMPLES
67
67
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
+
68
81
Prune all containers, pods, and networks that are not in use.
69
82
```
70
83
$ podman system prune --all
@@ -89,6 +102,24 @@ podman-default-kube-network
89
102
Total reclaimed space: 3.372GB
90
103
```
91
104
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
+
92
123
## SEE ALSO
93
124
** [ podman(1)] ( podman.1.md ) ** , ** [ podman-system(1)] ( podman-system.1.md ) **
94
125
0 commit comments