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       Cleanup all containers.
28
29
30   --exec=session
31       Clean up an exec session for a single container.  Can only be specified
32       if a single container is being cleaned  up  (conflicts  with  --all  as
33       such).   If --rm is not specified, temporary files for the exec session
34       will be cleaned up; if it is, the exec session will be removed from the
35       container.   Conflicts with --rmi as the container is not being cleaned
36       up so the image cannot be removed.
37
38
39   --latest, -l
40       Instead of providing the container name or ID,  use  the  last  created
41       container.  If you use methods other than Podman to run containers such
42       as CRI-O, the last started container could  be  from  either  of  those
43       methods.
44
45
46       The latest option is not supported on the remote client.
47
48
49   --rm
50       After cleanup, remove the container entirely.
51
52
53   --rmi
54       After cleanup, remove the image entirely.
55
56

EXAMPLE

58       podman container cleanup mywebserver
59
60
61       podman container cleanup mywebserver myflaskserver 860a4b23
62
63
64       podman container cleanup 860a4b23
65
66
67       podman container cleanup -a
68
69
70       podman container cleanup --latest
71
72

SEE ALSO

74       podman(1), podman-container(1)
75
76

HISTORY

78       Jun   2018,   Originally   compiled   by  Dan  Walsh  dwalsh@redhat.com
79       ⟨mailto:dwalsh@redhat.com⟩
80
81
82
83                                                 podman-container-cleanup(1)()
Impressum