dive: a docker image layer explorer

https://github.com/wagoodman/dive

A tool for exploring the contents of a docker image, and each layer within that image. It is aimed at folks that are trying to identify ways to shrink their docker image. It reports on how efficient your image is and lists out each file that may be leading to inefficiencies (e.g. when adding a file in one layer and later removing it... this file still takes up space in the image).

6 thoughts on “dive: a docker image layer explorer”

  1. I get the following error when trying to open an image
    > open /home/wagoodman/Downloads/image/image.tar: no such file or directory

    Reply
  2. Neat idea, I get an error though

    “`
    ❯ dive jenkins/jenkins
    Analyzing Image
    Using default tag: latest
    latest: Pulling from jenkins/jenkins
    Digest: sha256:5d9450a3b391e96a1525f6a5b40b3e2095df7a19195b6341fb097120cb0ab099
    Status: Image is up to date for jenkins/jenkins:latest
    open /home/wagoodman/Downloads/image/image.tar: no such file or directory
    “`

    Opened an [issue](https://github.com/wagoodman/dive/issues/28) for it.

    I’m running debian 9.5 in WSL on Windows 10. Shell is zsh 5.3.1

    Reply
  3. Looks great. Ran into an issue when doing go get with 1.11.1 and GO111MODULE=on

    ——————————————————————————-

    ../go/pkg/mod/github.com/wagoodman/[email protected]/line.go:18:16: not enough arguments in call to uuid.Must

    have (uuid.UUID)
    want (uuid.UUID, error)

    # [github.com/wagoodman/dive/filetree](https://github.com/wagoodman/dive/filetree)

    ../go/pkg/mod/github.com/wagoodman/[email protected]/filetree/tree.go:37:21: not enough arguments in call to uuid.Must

    have (uuid.UUID)
    want (uuid.UUID, error)

    Reply
  4. Ahhhh yes this is nice. I’ve pretty much just gotten into the habit of doing crap like `docker exec sh` and just futzing around. That looks so much better.

    Reply

Leave a Comment