Inspect Docker Images With dive

See every layer, file and wasted byte in an image.

macOSregistryFilescliLow risk
Run dive myimage:latest to open the image layer explorer.

01Command

Command
$ dive myimage:latest

02What it does

dive shows the filesystem of each image layer alongside an efficiency score and the space added or wasted by each layer. It is the quickest way to find bulky layers, leftover package caches and duplicate files before publishing an image.

03Risk

RiskLow risk
CompatibilitymacOS with Homebrew installed
!Warning: dive needs access to the Docker daemon and will pull the image if it is not present locally.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Homebrew formula: dive
    Homebrew · vendor-doc · 2026-09-20
    Evidence: Packages dive, a tool that explores Docker image contents and layer efficiency.

Last verified: 2026-09-22 · Category: Developer

06Related solutions