dive: Cannot analyze through docker desktop

What happened:

I’m trying to analyze a multi-gigabyte local image, and it’s just failing with “could not find image config”

🐚 dive myapp:latest
Image Source: docker://myapp:latest
Fetching image... (this can take a while for large images)
cannot fetch image
could not find image config
🐚 dive build .
Building image...
[REDACTED, but apparently successful]

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/9k057vmr8hx8ldwxbgravqng5
cannot build image
could not find image config

What you expected to happen:

Analysis

How to reproduce it (as minimally and precisely as possible):

Honestly, I’m not sure what’s going on to begin narrowing it down. It’s a 3+GB image and not published to a registry.

Anything else we need to know?:

Some kind of --verbose might make tracking this down easier.

Buildx is being used.

Environment:

  • OS version: Mac OSX 14.0
  • Docker version: Docker Desktop for Mac 4.26.1, Docker Engine 24.0.7

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 21 (7 by maintainers)

Commits related to this issue

Most upvoted comments

FYI, you don’t have to change the defaultDockerHost. You can just export DOCKER_HOST with the desired value. For example, export DOCKER_HOST=unix:///Users/jamie/.docker/run/docker.sock as a workaround until #490 is merged.

Fixed it by enabling this option in Docker Desktop (MacOS) in the “Advanced” tab:

Allow the default Docker socket to be used (requires password)

image

Would you kindly try replacing that line indocker_host_unix.go with unix:///Users/jamie/.docker/run/docker.sock and try it with some image again?