-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: how to inspect local image? #360
Comments
For me it simply worked by using |
Does inspecting a local image create large temporary files? and where are they stored? |
@indera-shsp at least for dive/dive/image/podman/resolver_linux.go Line 36 in c7d121b
Then the image is parsed on the fly. dive/dive/image/docker/image_archive.go Line 23 in c7d121b
|
I have similar problem. dive fbbae5f27e2a
Image Source: docker://fbbae5f27e2a
Fetching image... (this can take a while for large images)
Handler not available locally. Trying to pull 'fbbae5f27e2a'...
Using default tag: latest
Error response from daemon: failed to resolve reference "docker.io/library/fbbae5f27e2a:latest": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
cannot fetch image
exit status 1 This is local image, not available on hub. |
Still not possible to dive into local image neither by its name, nor by id. Workaround is wrappring into script like: IMAGE_NAME="${1}"
TMP_FILE=/tmp/dive-tmp-image.tar
docker save "$IMAGE_NAME" > $TMP_FILE && dive $TMP_FILE --source=docker-archive && rm $TMP_FILE |
this definitely used to work for me (way after this issue was opened), i thought i was crazy and i see everyone else can't
|
@yehudamakarov could you try building the branch fix/docker-context from source and test it out to see if it helps? Just running |
I had the same question of how to inspect a local docker image in a tarball. The docker image I am working with is built by I was able to easily inspect it with $ nix-build ... # build the docker image
...
/nix/store/q9hl1xlcyglqlc4jp0yzm7riajjymmrg-my-docker-image.tar.gz
$ dive --source docker-archive <(gunzip -c /nix/store/q9hl1xlcyglqlc4jp0yzm7riajjymmrg-my-docker-image.tar.gz) This uses |
Same as @yehudamakarov, it used to work for me, but it does not anymore.
EDIT : I was running version 0.11.0, and upgrading to 0.12.0 seemed to solve the problem. |
this is annoying |
I upgraded to version 0.12.0 on Darwin and it works for me now. |
i've been noticing it has been working for me not sure what the difference is. i was on 0.11.0 |
Still having this issue on macOS 14.3. Updated dive to 0.12 and Docker Desktop to 4.30.0. Didn't help. Any more ideas?
|
Can we skip pulling from hub,using local image insted?
My image is imported via command
docker load -i
, and it's not avaliable in registry.The text was updated successfully, but these errors were encountered: