dive
by wagoodman
Dive is a command-line tool that lets you browse a Docker or OCI image layer by layer and see which files each layer adds, changes or removes. It helps you find wasted space so you can make images smaller.
- Stars
- 54.7k
- Licence
- MIT
- Runs on
- Your computer
- Setup
- Easy
- Language
- Go
- Age
- 3092 days
What you can do with it
- Browse the file tree of each layer in a Docker image to see what changed
- Check an image efficiency score and the amount of wasted space to find ways to shrink it
- Run it in a CI pipeline to fail builds when an image wastes too much space
Make money with it
A freelancer could offer container image optimisation audits for small teams, using it to show where space is wasted.
An idea, not financial advice. Check the licence before charging for anything built on it.
Ways a business could use it
- Cut cloud storage, bandwidth and deployment time by trimming bloated container images
- Add an automated image-size check to a CI pipeline to keep client builds lean
Can you use it commercially?
Free to use, change and sell, including in paid products. Keep the copyright notice.
Not legal advice. Read the project's licence file before building a product on it.
Getting it running
Install with a package manager such as Homebrew, apt, Chocolatey or winget, download a release, or run it through Docker, then run "dive <image>".
Follow the official instructions in the project README.
Things to check
- README describes it as beta quality
- The image efficiency score is described as experimental
- Docker socket access is needed when running it in a container
Checked 30 Oct 2026. Summary drafted by AI from the project's README.