Dive

No Change
trial
First Added:July 23, 2023 Updated: May 18, 2026

Dive is a terminal UI for exploring OCI/Docker image layers: file tree per layer, layer size, and an efficiency score to spot bloat. We rate it trial for interactive image slimming during development; pair automated gates with Container Structure Test and registry scanners in CI, not Dive alone.

Blurb

A tool for exploring a docker image, layer contents, and discovering ways to shrink the size of your Docker/OCI image.

Summary

Role: developer feedback loop after docker build (or Podman): see which layers added weight, which files duplicate across layers, and what to move to multi-stage builds or .dockerignore.

When to use:

  • Debugging fat images before production
  • Teaching Containerization (layer caching, multi-stage Dockerfiles)
  • Quick review of third-party base images

When to skip:

  • Headless CI-only pipelines (use dive ci only if you accept its efficiency threshold; many teams prefer CST + vulnerability scan)
  • Teams on Dev Container only who never inspect host-built images

Workflow:

1
2
dive myimage:tag          # interactive TUI
dive ci --ci-config .dive-ci myimage:tag   # optional CI gate

Works with the docker CLI; often used with Docker / Rancher Desktop local engines. Image must be available locally (docker load if from CI artifact).

Details

TopicNotes
Efficiency scoreHeuristic; use as a hint, not a policy
Multi-stageDive shines when comparing builder vs runtime stages
SecurityLayer exploration is not vulnerability scanning
ComplementsContainer Structure Test asserts image contract; Dive explores why the image is large

Garden pattern: trial on repos you build; adopt CST in CI for every image you ship.

References