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

EXAMPLE

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

SEE ALSO

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

HISTORY

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