How To - Dive

Dive

Website: github.com/wagoodman/dive

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

Install Dive

brew install dive

Verify the Installed Dive Version

dive version

Dive Help

dive help

Analyze an Image

dive [IMAGE NAME]

Build an Image and Analyze it from Dockerfile

The container engine to fetch the image from is docker on Mac.

In below command dockerfile is in the current directory where dive build command is executed.

dive build -t [Image-Name-Tag] .