What is Dive?
Dive opens a container image in a two-pane terminal view: the layers on the left, with the Dockerfile command that made each one, and on the right the file tree as it looks after that layer, with added, changed and removed files marked. It estimates the image's efficiency and lists wasted space, such as files copied in one layer and deleted in a later one. Run with CI=true it skips the interface and passes or fails the image against rules in a .dive-ci file; the README's example fails below 0.95 efficiency, above 20MB of wasted bytes or above 0.20 of wasted user space.
Alex Goodman started it in 2018, it is MIT licensed and written in Go and has about 54,800 stars. Maintenance has been uneven. In March 2025 the author posted that full-time work and parenting had kept him away for years, merged a community fork and shipped v0.13.1 on 29 March 2025, which is still the latest release. The repository then went quiet from May 2025 until 30 October 2026, when he apologised for not following through and merged a rewrite onto stereoscope, the image library behind Anchore's Syft and Grype.
That rewrite and two bug-fix rounds since, the last merged on 30 November 2026, are on the main branch but not yet in a release. They add registry, containerd, OCI archive and directory, Podman and containers-storage sources, a --platform flag, and a fix that stops image metadata from sending terminal escape codes. The author has promised a release first, then a written plan for adding maintainers. There are 118 open issues.
Is Dive worth it?
Dive's appeal is easy to explain: it shows, layer by layer, exactly which files a Dockerfile line put into an image and which ones were thrown away later but still shipped. On Hacker News in January 2024, where it reached 464 points, users described using it to find leftover build dependencies, development node_modules and a bundled Chromium, and one said it was what finally taught them how image layers work. The CI mode turns that into a guard, failing a build when wasted space crosses a threshold.
Dive has no AI features. No MCP server or agent integration exists either; one would-be contributor offered to build an MCP interface in the October 2026 maintenance thread, which is as far as that has gone. What it offers anyone reviewing Dockerfiles, whoever or whatever wrote them, is the .dive-ci check, which catches the familiar mistake of installing build tools in one RUN line and deleting them in another.
The catch: maintenance. The Docker v26 breakage reported in June 2024, which sent users to a fork and is still cited by rival tools such as Peel, took nine months to fix, in the spring 2025 burst that produced v0.13.1. Some image-config errors were closed only in November 2026, on the unreleased code. The author's own fix list for the unreleased code includes crashes, wrong waste figures for removed directories and hard links, and CI rules that were silently ignored, all bugs present in what package managers ship today. He also admitted that the 2025 promise of weekly work and new maintainers was not kept. Hacker News users add that very large images are slow, and the most requested feature, viewing a file's contents from the tree, has been open since 2019.
Our take: Dive is worth keeping for the moment a Dockerfile change makes an image balloon, since nothing else shows the cause as directly. Until a release with the stereoscope port ships, a build from main or Docker Desktop's own layer view is safer than the packaged v0.13.1 on a current Docker setup.
Where it earns its place
A backend developer whose Node service image has grown past 1GB
Find out which Dockerfile step is adding the weight
Run dive on the image, step through the layers and sort the tree by size; files removed in a later layer show as wasted space. Typical finds, according to users, are dev dependencies and build tools left behind. Free and local.
A platform team reviewing Dockerfiles from a dozen product teams
Stop bloated images reaching the registry
Add CI=true dive with a .dive-ci file (lowestEfficiency, highestWastedBytes, highestUserWastedPercent) to the pipeline so a build fails when waste crosses the line. Use a build from main for now, since the CI rule fixes are not in v0.13.1.
A security engineer checking a third-party base image before adopting it
See what each layer of an unfamiliar image actually installs
Point dive at the image tag, read each layer's command next to the files it added, and extract suspect files to disk; on main, extraction is confined to the working directory and escape codes in image metadata are neutralised.
Before you commit
- Setup
- brew install dive, apt install of the .deb, pacman, winget, scoop, choco, go install, or docker run with /var/run/docker.sock mounted; first image open in a minute or two. The README warns that the Snap package can break a Docker installed with apt.
- Integrations
- Docker engine by default; on main also Podman, containerd, containers-storage, registries, docker save tarballs and OCI archives or directories. CI mode with .dive-ci rules and JSON output. No API server or MCP interface.
- Data and privacy
- Runs locally; reads images from your engine or pulls them from a registry with your Docker credentials. On main, registries on private IP addresses are refused and Podman over SSH is refused because host keys are not verified. MIT licence.
- Cost at scale
- Free. The cost is time: the docs and users note that very large images are slow to analyse, and the tool makes a temporary copy of the image while it works.
- Limits
- Release v0.13.1 lags main by a full rewrite; some image-config errors fixed only on main; no file-content viewer; large images slow; single maintainer, with governance still promised.
What’s good
- Layer-by-layer file tree with added, changed and removed files marked
- Efficiency score and wasted-space list point at Dockerfile mistakes
- CI mode fails builds on efficiency or waste thresholds
- Unreleased main reads registries, containerd, Podman and OCI layouts
What’s not
- Latest release is v0.13.1 from March 2025
- Fixes for crashes, wrong waste maths and CI rules are unreleased
- One maintainer with a record of long absences
- Cannot show file contents; slow on very large images
Best for
Developers and platform engineers who build their own container images and want to see, or enforce in CI, where the size comes from.
Dive alternatives
Where it fits in the AI stack
Dive: common questions
- Is Dive worth it?
- Dive is still the clearest way to see why a container image is fat, but the version most people can install is 20 months old and the fixed one is not out yet. We rate it 3.9 out of 5.
- How much does Dive cost?
- Free under the MIT licence; no paid edition.
- What are the downsides of Dive?
- Latest release is v0.13.1 from March 2025; fixes for crashes, wrong waste maths and CI rules are unreleased; one maintainer with a record of long absences; cannot show file contents; slow on very large images.
- Who is Dive best for?
- Developers and platform engineers who build their own container images and want to see, or enforce in CI, where the size comes from.
- How much does Dive cost for a team or in production?
- Free. The cost is time: the docs and users note that very large images are slow to analyse, and the tool makes a temporary copy of the image while it works.
- Is Dive safe for company data?
- Runs locally; reads images from your engine or pulls them from a registry with your Docker credentials. On main, registries on private IP addresses are refused and Podman over SSH is refused because host keys are not verified. MIT licence.
- What are the best Dive alternatives?
- The closest alternatives we have reviewed are Trivy and Docker Skills.
Answers checked Nov 30, 2026.