Find what Docker left on disk.

One command. Sorted report of images, volumes, containers, logs, build cache — plus cleanup commands with safety notes.

$ npx @stackctl/docker-storage-analyzer analyze
$ npm install -g @stackctl/docker-storage-analyzer

Two commands. Zero daemons.

Stable output. Works over any Docker socket.

dkanalyze analyze

Full disk report: images, volumes, containers, logs, and build cache with reclaimable space.

dkanalyze watch

Re-analyze every N seconds. Useful for watching cleanup progress live.

dkanalyze analyze --json

Machine-readable output for CI pipelines, cron jobs, and monitoring dashboards.

dkanalyze analyze --ai

AI-powered cleanup suggestions. Supports OpenAI, Anthropic, Ollama, and OpenCode. Configure via env vars.

dkanalyze analyze --ai --ai-provider ollama

Pick a specific AI backend. Providers: openai, anthropic, ollama, opencode.

Rich tables, clear recommendations.

Default output is a colorized terminal report. JSON when you need it.

╭──────────────────────────────────────────────────────╮
│                                                      │
│     Docker Storage Analyzer                          │
│     Disk Usage Report                                │
│                                                      │
╰──────────────────────────────────────────────────────╯

Summary
──────────────────────────────────────────────────
  Total Used:     138.4 GB
  Images                    52.1 GB (37.6%)
  Volumes                   34.8 GB (25.1%)
  Containers (logs+layer)   17.3 GB (12.5%)
  Build Cache               34.2 GB (24.7%)
──────────────────────────────────────────────────

Images
┌──────────────────────┬──────────┬───────────────┬────────────┐
│ Repository:Tag       │ Size     │ Created       │ Containers │
├──────────────────────┼──────────┼───────────────┼────────────┤
│ postgres:15          │ 425.3 MB │ Jun 15, 2026  │ 1          │
│ node:20-alpine       │ 175.8 MB │ Jun 10, 2026  │ 0          │
│ <none>:<none>       │ 92.4 MB  │ May 3, 2026   │ 0          │
└──────────────────────┴──────────┴───────────────┴────────────┘

Cleanup Recommendations
  Estimated reclaimable space: 46.2 GB

  [images] Remove 12 dangling (untagged) images
     Estimated: 8.3 GB
     Command: docker image prune

  [containers] Remove 3 stopped containers
     Estimated: 2.1 GB
     Command: docker container prune

  [volumes] Remove 5 unused volumes
     Estimated: 21.7 GB
     Command: docker volume prune

  [build-cache] Clear 1 build cache entries
     Estimated: 14.1 GB
     Command: docker builder prune

No automatic cleanup.

The tool shows you Docker commands to run — you decide what to prune.

images

Dangling (<none>:<none>) images with zero attached containers are safe to remove.

containers

Stopped containers and their writable layers — review before pruning.

volumes

Detached volumes with no active containers. Double-check mount paths first.

build cache

Builder layers and BuildKit cache. Safe to clear, but next builds will be slower.

logs

Containers with logs over 10 MB. Rotate or truncate — data already emitted to stdout/stderr.