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
- feat(docker): Honor the host specified in current docker context (wagoodman/dive#490) This patch adds support for detecting the "docker host" to connect to which is set in the current docker context.... — committed to joschi/dive by joschi 2 years ago
- feat(docker): Honor the host specified in current docker context (wagoodman/dive#490) This patch adds support for detecting the "docker host" to connect to which is set in the current docker context.... — committed to joschi/dive by joschi 2 years ago
- Reintegrate fork joschi/dive (#570) * chore: configure Renovate (#1) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update github artifact actions to... — committed to reneleonhardt/dive by joschi 2 years ago
FYI, you don’t have to change the
defaultDockerHost. You can just exportDOCKER_HOSTwith the desired value. For example,export DOCKER_HOST=unix:///Users/jamie/.docker/run/docker.sockas 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)Would you kindly try replacing that line in
docker_host_unix.gowithunix:///Users/jamie/.docker/run/docker.sockand try it with some image again?