podman-unmount(1)
β¨ podman-unmount(1) β¨
okay bestie, welcome to podman-unmount β the part of the General Commands Manual where we take a working container's root filesystem and go "you're done here, queen" π
πΈ NAME πΈ
podman-unmount β unmount a working container's root filesystem
π¦ SYNOPSIS π¦
podman unmount [options] container [...]
podman umount [options] container [...]
podman container unmount [options] container [...]
podman container umount [options] container [...]
like yes, there are four whole ways to spell it, and all of them slay equally π«Ά
π DESCRIPTION π
So here's the tea: this unmounts the root file system of the containers you point at β but only if no other processes are using it. if somebody else is still vibing in there, it stays mounted, no cap.
Container storage keeps a lil mount counter that goes up every single time a container gets mounted. when you unmount a container, that counter goes down, and the container's root filesystem only gets physically unmounted when the counter hits zero β which is the signal that literally nobody else is using that mount. if you're impatient and you want it gone anyway, you can force it with the --force flag. πͺ
Note: Podman can unmount Podman containers and external containers. external containers are containers created in container/storage by other tools like Buildah and CRI-O. so yeah, we're inclusive like that π
π OPTIONS π
--all,-aβ every single currently mounted container gets unmounted. all of them. the whole friend group. π--force,-fβ force the unmounting of the specified containers' root file system, even if other processes have mounted it. dramatic, but okay.
Note: other processes can fail if the mount point they're using gets removed without their knowledge. so like... be aware, bestie. this is a real one. π
--latest,-lβ instead of giving a container name or ID, just use the last created container. note: the last started container can be from other users of Podman on the host machine. (this option is not available with the remote Podman client, including Mac and Windows machines β excluding WSL2. π)
π EXAMPLE π
Unmount container with a given ID:
podman container unmount containerID
Unmount multiple containers with given IDs:
podman unmount containerID1 containerID2 containerID3
Unmount all containers:
podman unmount --all
Force umount container with given ID:
podman umount --force containerID
π SEE ALSO π
podman(1), podman-mount(1), podman-image-mount(1)
and that's the whole page, bestie β podman-unmount(1) from the General Commands Manual, written and dated with love. go forth and unmount responsibly πβ¨ππ¦
π¦ where this page comes from
- arch rolling: podman-docker 6.1.4-1 Β· Apache-2.0
- fedora 43: podman-docker 5:5.6.2-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: podman-docker 5:5.8.4-1.fc43
- fedora 43: podman-docker 5:5.8.8-1.fc43
- fedora 43: podman-docker 5:5.8.9-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.7-1.fc44
- fedora 44: podman-docker 5:5.8.9-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- ubuntu resolute: podman-docker 5.7.0+ds2-3build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms