docker system df / prune
DestructiveDocker disk usage
docker system df
Inspect and reclaim space used by images/containers/volumes.
Examples
docker system prune -aReclaim all unused
Syntax
docker system df | docker system prune [-a]
Before you run it
prune -a removes stopped/unused assets too.
Used when you see
Docker is eating the disk
1
See the whole flow →Break down usage with system dfsystem df first; understand prune -a before running it.
Related commands
- docker imagesList/remove images
Check it once more before you run it
Some commands cannot be undone if one flag is wrong. An on-device reference works with no connection. Free to install, no ads.
Get it free on the App Store