Favicon of dive

dive

Explore Docker image layers, identify wasted space, and reduce container size with an interactive terminal interface. Supports multiple container engines and CI integration.

Dive is a terminal-based tool for analyzing Docker and OCI images layer by layer. It helps you understand what's inside your container images and discover opportunities to reduce their size.

Key capabilities:

  • Layer-by-layer exploration: Navigate through each layer of your Docker image and see exactly what files were added, modified, or removed at each step
  • Wasted space detection: Get an efficiency score and identify duplicate files, moved files, and incomplete deletions that bloat your images
  • Interactive file tree: Use arrow keys to explore the complete file structure and understand how your image is organized
  • Quick build cycles: Combine building and analyzing in one command with dive build -t tag .
  • CI/CD integration: Run in non-interactive mode with pass/fail results based on efficiency thresholds and size limits
  • Multiple image sources: Analyze images from Docker, Podman, or tar archives using the --source option

How it works: Simply run dive <image-tag> to launch the interactive interface, or set CI=true for automated analysis in your pipeline. The tool shows layer information on the left and file contents on the right, with visual indicators for what changed in each layer.

Built in Go for speed and efficiency, dive runs as a standalone binary or Docker container. It's ideal for DevOps engineers and developers who want to optimize container images and understand their composition.

Install

Apt
$ apt install ./dive_

Features

Config fileJSON outputScriptable

Media

Pros

4
  • Explore Docker image layers interactively
  • Identify and reduce wasted space in container images
  • Supports multiple container engines (Docker, Podman)
  • Provides CI integration for automated analysis

Cons

1
  • Described as beta quality

Related tools

Share:

Quiet lately: No commits in 7 months — this project might not be actively maintained.

Auto-fetched .

Recent releases

Similar to dive

Favicon

 

  
 
Favicon

 

  
 
Favicon