Inspect Docker Images With dive
See every layer, file and wasted byte in an image.
Run dive myimage:latest to open the image layer explorer.
01Command
Command
$ dive myimage:latest02What 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
!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: diveEvidence: Packages dive, a tool that explores Docker image contents and layer efficiency.
Last verified: 2026-09-22 · Category: Developer
06Related solutions
Find files larger than 500 MB on Mac
List the biggest files in your home folder that are eating disk space.
Show file extensions for all files on Mac
Make Finder display .pdf, .docx, .png and every other extension at all times.
Find Which Process Has a File or Volume Open with lsof
List every open file descriptor — files, directories, and network sockets — per process.