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

NAME

6       podman-container-cleanup  -  Cleanup the container's network and mount‐
7       points
8
9

SYNOPSIS

11       podman container cleanup [options] container
12
13

DESCRIPTION

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

OPTIONS

26       --all, -a
27
28
29       Cleanup all containers.
30
31
32       --latest,  -l  Instead  of  providing the container name or ID, use the
33       last created container. If you use methods other  than  Podman  to  run
34       containers  such  as  CRI-O,  the  last started container could be from
35       either of those methods.
36
37
38       The latest option is not supported on the remote client.
39
40
41       --rm
42
43
44       After cleanup, remove the container entirely.
45
46
47       --rmi
48
49
50       After cleanup, remove the image entirely.
51
52

EXAMPLE

54       podman container cleanup mywebserver
55
56
57       podman container cleanup mywebserver myflaskserver 860a4b23
58
59
60       podman container cleanup 860a4b23
61
62
63       podman container cleanup -a
64
65
66       podman container cleanup --latest
67
68

SEE ALSO

70       podman(1), podman-container(1)
71
72

HISTORY

74       Jun  2018,  Originally  compiled   by   Dan   Walsh   dwalsh@redhat.com
75       ⟨mailto:dwalsh@redhat.com⟩
76
77
78
79                                                 podman-container-cleanup(1)()
Impressum