Podman stores images, containers and volumes like Docker does, but by default without a daemon and without root. That means the space is in your home folder, not in /var/lib/docker, and many disk tools that look for Docker miss it. After a few months of builds, ~/.local/share/containers can hold 20 to 50 GB of old image layers and build cache.
This guide shows where Podman keeps its data, how to see what takes the space, and which commands free it safely.
Where Podman keeps its data
- Rootless (you run
podmanas yourself, the usual case):~/.local/share/containers/storage/. Images, layers, containers and volumes of your user are all here. - Root (you run
sudo podman):/var/lib/containers/storage/, a separate store with its own images. - Build cache: intermediate layers from
podman build(Buildah) are kept in the same store;podman builder pruneremoves them.
Each store is separate. An image you pulled with sudo podman is not visible to rootless podman, so you may have the same image twice.
To see how big each store is:
du -sh ~/.local/share/containers/storage
sudo du -sh /var/lib/containers/storage
See what takes the space
podman system df shows images, containers and volumes with their size and how much is reclaimable. Add -v to list each item.
podman system df
podman images --filter dangling=true
podman volume ls --filter dangling=true
Dangling images (<none>) are old layers that a newer build replaced. Dangling volumes are volumes no container uses any more.
Free the space
From the safest to the most thorough:
podman image pruneremoves dangling images. Nothing you use is touched.podman image prune -aremoves every image no container uses. You download or build them again when needed.podman container pruneremoves stopped containers. Their changes are lost; their volumes stay.podman volume pruneremoves volumes no container uses. This is data: a database you ran in a container lives in a volume. Check withpodman volume lsandpodman volume inspectfirst.podman system prune -adoes 1 to 3 at once; add--volumesto include volumes.
podman system reset deletes the whole store, every image, container and volume. Use it only to start over.
Run each command again with sudo for the root store if you use it.
How CleanMate does it
CleanMate 2.7.0 on Ubuntu (all Ubuntu features) lists Podman in Smart Scan › Developer Junk:
- Stopped containers and dangling images (
podman system prune), unused images (podman image prune -a) and build cache (podman builder prune), each with its size. Running containers, tagged images in use and volumes are kept. - Unused volumes (
podman volume prune) are listed on their own and counted as data: not ticked, and automatic cleaning never removes them. - Nothing is removed until you confirm, and CleanMate uses Podman’s own commands as your user, for the rootless store.
Space Lens shows ~/.local/share/containers with its size next to your other folders, so you can see whether Podman is the big one. If you use Docker too, see Docker using too much disk space, and if Docker says permission denied on Ubuntu, the Docker permission guide. For the rest of a developer machine, see Free up disk space on Ubuntu as a developer and Virtual machines and dev infrastructure tools.
FAQ
Is podman system prune safe? Without --volumes, yes: it removes stopped containers, unused networks, dangling images and build cache. Your running containers and volumes stay.
Why does df not change after I prune? Check that you pruned the right store: rootless and root (sudo podman) are separate.
Can I move Podman’s storage to another disk? Yes. Set graphroot in ~/.config/containers/storage.conf, then run podman system reset and pull your images again.
Does Podman Desktop keep its own copy? On Linux, Podman Desktop uses the same rootless store, so the same commands apply.
