1podman-container-prune(1)()                        podman-container-prune(1)()
2
3
4

NAME

6       podman-container-prune - Remove all stopped containers from local stor‐
7       age
8
9

SYNOPSIS

11       podman container prune [options]
12
13

DESCRIPTION

15       podman container prune removes all stopped containers from local  stor‐
16       age.
17
18

OPTIONS

20       --filter=filters
21
22
23       Provide filter values.
24
25
26       --force, -f
27
28
29       Do not provide an interactive prompt for container removal.
30
31
32       -h, --help
33
34
35       Print usage statement
36
37

Examples

39       Remove all stopped containers from local storage
40
41
42              $ sudo podman container prune
43              WARNING! This will remove all stopped containers.
44              Are you sure you want to continue? [y/N] y
45              878392adf2e6c5c9bb1fc19b69d37d2e98c8abf9d539c0bce4b15b46bbcce471
46              37664467fbe3618bf9479c34393ac29c02696675addf1750f9e346581636cde7
47              ed0c6468b8e1cb641b4621d1fe30cb477e1fefc5c0bceb66feaf2f7cb50e5962
48              6ac6c8f0067b7a4682e6b8e18902665b57d1a0e07e885d9abcd382232a543ccd
49              fff1c5b6c3631746055ec40598ce8ecaa4b82aef122f9e3a85b03b55c0d06c23
50              602d343cd47e7cb3dfc808282a9900a3e4555747787ec6723bb68cedab8384d5
51
52
53
54       Remove all stopped containers from local storage without confirmation.
55
56
57              $ sudo podman container prune -f
58              878392adf2e6c5c9bb1fc19b69d37d2e98c8abf9d539c0bce4b15b46bbcce471
59              37664467fbe3618bf9479c34393ac29c02696675addf1750f9e346581636cde7
60              ed0c6468b8e1cb641b4621d1fe30cb477e1fefc5c0bceb66feaf2f7cb50e5962
61              6ac6c8f0067b7a4682e6b8e18902665b57d1a0e07e885d9abcd382232a543ccd
62              fff1c5b6c3631746055ec40598ce8ecaa4b82aef122f9e3a85b03b55c0d06c23
63              602d343cd47e7cb3dfc808282a9900a3e4555747787ec6723bb68cedab8384d5
64
65
66
67
68       Remove all stopped containers from local storage created within last 10
69       minutes
70
71
72              $ sudo podman container prune --filter until="10m"
73              WARNING! This will remove all stopped containers.
74              Are you sure you want to continue? [y/N] y
75              3d366295e33d8cc612c4d873199bacadd55088d90d17dcafaa9a2d317ad50b4e
76
77
78

SEE ALSO

80       podman(1), podman-ps
81
82

HISTORY

84       December 2018, Originally compiled by Brent Baude (bbaude at redhat dot
85       com)
86
87
88
89                                                   podman-container-prune(1)()
Impressum