1podman-container-cleanup(1) General Commands Manualpodman-container-cleanup(1)
2
3
4

NAME

6       podman-container-cleanup - Cleanup Container storage and networks
7
8

SYNOPSIS

10       podman container cleanup [options] container
11
12

DESCRIPTION

14       podman container cleanup cleans up exited containers by removing all
15       mountpoints and network configuration from the host.  The container
16       name or ID can be used.  The cleanup command does not remove the
17       containers.  Running containers will not be cleaned up.  Sometimes
18       container's mount points and network stacks can remain if the podman
19       command was killed or the container ran in daemon mode.  This command
20       is automatically executed when you run containers in daemon mode by the
21       conmon process when the container exits.
22
23

OPTIONS

25       --all, a
26
27
28       Cleanup all containers.
29
30
31       --latest, -l Instead of providing the container name or ID, use the
32       last created container. If you use methods other than Podman to run
33       containers such as CRI-O, the last started container could be from
34       either of those methods.
35
36
37       The latest option is not supported on the remote client.
38
39

EXAMPLE

41       podman container cleanup mywebserver
42
43
44       podman container cleanup mywebserver myflaskserver 860a4b23
45
46
47       podman container cleanup 860a4b23
48
49
50       podman container cleanup -a
51
52
53       podman container cleanup --latest
54
55

SEE ALSO

57       podman(1), podman-container(1)
58
59

HISTORY

61       Jun 2018, Originally compiled by Dan Walsh ⟨dwalsh@redhat.com⟩
62
63
64
65                                                   podman-container-cleanup(1)
Impressum