Cleanup and diagnosticsDocker
docker system prune
Remove unused resources like dangling images and stopped containers.
Command
docker system prune --all --volumes
Example usage
Compact disk usage by pruning stale containers, images, and volumes.
docker system prune --all --volumes
docker image prune --filter "until=24h"
Related tags
Cleanup and diagnosticscontainersimagescompose