- 1
Check usage
docker system df - 2
Prune stopped containers
docker container prune -f - 3
Prune unused images
docker image prune -a -f - 4
Prune everything
docker system prune -a --volumes -f
Common mistakes
- Running full prune without confirming required volumes.
Related commands: docker system df, docker system prune