lift disk
Show disk usage overview with Docker breakdown and manage disk cleanup operations.
lift disk
Show disk overview with Docker resource breakdown and manage disk cleanup. When run without a subcommand, displays disk usage, Docker system stats, and last cleanup info.
Options
| Flag | Description | Default |
|---|---|---|
--output jsonl | Output as JSONL for scripting | - |
Examples
# Show disk overview
lift disk
# JSON output for scripting
lift disk --output jsonl
Subcommands
lift disk cleanup
Run disk cleanup to free unused Docker resources. Normal mode removes stopped containers, dangling images, unused networks, and build cache. Force mode aggressively removes old image layers.
| Flag | Description | Default |
|---|---|---|
--force | Aggressive cleanup: keep only 1 image per repo | false |
--dry-run | Preview what would be freed without making changes | false |
# Normal cleanup
lift disk cleanup
# Preview what would be freed
lift disk cleanup --dry-run
# Aggressive cleanup
lift disk cleanup --force
lift disk history
Show recent disk cleanup history from server logs.
lift disk history
Related
- lift doctor - Run server diagnostics
- lift status - Check container status