wagoodman

    wagoodman/dive

    A tool for exploring each layer in a docker image

    54.7K stars
    2.0K forks
    364 GitHub watchers
    Updated Nov 7, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    No releases in the last 90 days; the most recent was 588 days ago, with 59 contributors on GitHub.

    Peaked at #67 in the weekly ranking the week of Apr 12, its best in the past year.

    Use Cases & Benefits

    • Explores Docker image layers and their contents to analyze and optimize image size and efficiency.
    • Provides detailed layer-by-layer file changes and estimates wasted space to help shrink Docker/OCI images effectively.
    • Use for inspecting and understanding the composition of Docker images during development.
    • Use for integrating image size and efficiency checks into CI pipelines to enforce optimization standards.
    • Use for comparing file changes across layers to identify redundant or unnecessary files in container images.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

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

    To analyze a Docker image simply run dive with an image tag/id/digest:

    or if you want to build your image then jump straight into analyzing it:

    Building on macOS (supporting only the Docker container engine):

    Additionally you can run this in your CI pipeline to ensure you're keeping wasted space to a minimum (this skips the UI):

    This is beta quality! Feel free to submit an issue if you want a new feature or find a bug :)

    Show Docker image contents broken down by layer

    As you select a layer on the left, you are shown the contents of that layer combined with all previous layers on the right. Also, you can fully explore the file tree with the arrow keys.

    Indicate what's changed in each layer

    Files that have changed, been modified, added, or removed are indicated in the file tree. This can be adjusted to show changes for a specific layer, or aggregated changes up to this layer.

    The lower left pane shows basic layer info and an experimental metric that will guess how much wasted space your image contains. This might be from duplicating files across layers, moving files across layers, or not fully removing files. Both a percentage "score" and total wasted file space is provided.

    You can build a Docker image and do an immediate analysis with one command: dive build -t some-tag .

    You only need to replace your docker build command with the same dive build command.

    Excerpt from the wagoodman/dive README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    2.0K+21

    Open issues

    205-4

    Compared with peers in CLI

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    wagoodman/dive compared with CLI repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    morluto/rea450.0K+22.9K7516 days ago
    mattpocock/skills320.9K+9.5K7512 days ago
    vercel-labs/agent-desktop21.4K+8.7K755 days ago
    stablyai/orca121.4K+6.7K75today
    vercel-labs/agent-browser49.2K+3.8K751 day ago
    wagoodman/dive54.7K—35588 days ago
    Category median121.4K+8.7K75—

    Discover Repositories

    Search across tracked repositories by name or description