How do you clean up Docker disk space?

Docker · System · updated 2026-08-23

docker system prune — Cleanup

docker system prune removes stopped containers, dangling images, unused networks and the build cache after a confirmation prompt. Add -a to also remove images that no container references.

Related Docker shortcuts: System

ShortcutActionNotes
docker system pruneCleanupRemove unused containers, images, and networks.
docker volume lsList volumesList Docker volumes.
docker network lsList networksList Docker networks.
docker statsResource usageShow real-time CPU and memory usage per container.

From the Docker reference (24 entries) · all how-to answers