1podman-unmount(1)           General Commands Manual          podman-unmount(1)
2
3
4

NAME

6       podman-unmount - Unmount a working container's root filesystem
7
8

SYNOPSIS

10       podman unmount [options] container [...]
11
12
13       podman umount [options] container [...]
14
15
16       podman container unmount [options] container [...]
17
18
19       podman container umount [options] container [...]
20
21

DESCRIPTION

23       Unmounts  the  specified containers' root file system, if no other pro‐
24       cesses are using it.
25
26
27       Container storage increments a mount counter each time a  container  is
28       mounted.   When  a  container is unmounted, the mount counter is decre‐
29       mented, and the container's root  filesystem  is  physically  unmounted
30       only  when the mount counter reaches zero indicating no other processes
31       are using the mount.  An unmount can be forced with the --force flag.
32
33
34       Note: Podman can be used to unmount Podman containers as well as exter‐
35       nal  containers.   External  containers  are containers created in con‐
36       tainer/storage by other tools like Buildah and CRI-O.
37
38

OPTIONS

40   --all, -a
41       All of the currently mounted containers are unmounted.
42
43
44   --force, -f
45       Force the unmounting of specified containers' root file system, even if
46       other processes have mounted it.
47
48
49       Note: Other processes can fail if the mount point they are using is re‐
50       moved without their knowledge.
51
52
53   --latest, -l
54       Instead of providing the container name or ID,  use  the  last  created
55       container.  Note: the last started container can be from other users of
56       Podman on the host machine.  (This option is not available with the re‐
57       mote  Podman  client,  including  Mac  and Windows (excluding WSL2) ma‐
58       chines)
59
60

EXAMPLE

62       Unmount container with a given ID
63
64
65              podman container unmount containerID
66
67
68
69       Unmount multiple containers with given IDs
70
71
72              podman unmount containerID1 containerID2 containerID3
73
74
75
76       Unmount all containers
77
78
79              podman unmount --all
80
81
82

SEE ALSO

84       podman(1), podman-mount(1), podman-image-mount(1)
85
86
87
88                                                             podman-unmount(1)
Impressum