You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built the same image on colima and docker desktop (Intel mac), and only the docker one worked. It sounds like lima isn't supported yet, so I'd like to request that feature in the future!
@jhogendorndive docker-engine://image.tar doesn't seem to work for me after saving an image to a tar:
docker save my-valid-image:latest > image.tar
dive docker-engine://image.tar
Image Source: docker://docker-engine://image.tar
Fetching image... (this can take a while for large images)
Handler not available locally. Trying to pull 'docker-engine://image.tar'...
invalid reference format
cannot fetch image
exit status 1
If you setup the DOCKER_HOST environment variable to point to colima in your shell configuration, dive (and other docker tools) will work out of the box. No need to manually update a symbolic link.
Find the configuration file for your shell.
The default shell is Zsh on Macs. Your terminal configuration file is the ~/.zshrc file.
If you switched to Bash, your terminal configuration file is ~/.bashrc.
Add export DOCKER_HOST=unix://$HOME/.colima/docker.sock to the file.
Save and exit.
Start a new terminal or run source ~/.zshrc or source ~/.bashrc to apply the changes to the existing terminal session.
Activity
jhogendorn commentedon May 10, 2022
I have also started swapping to colima due to docker-desktop reliability being pretty bad, and would love colima support.
In the meantime, you can run:
docker save myimage > image.tar
dive docker-engine://image.tar
sammcj commentedon May 11, 2022
@jhogendorn
dive docker-engine://image.tar
doesn't seem to work for me after saving an image to a tar:jhogendorn commentedon May 11, 2022
oh, apologies i mistyped.
dive docker-archive://image.tar
ikunali commentedon Jul 27, 2022
A simple fix for this right now is just running
sudo ln -sf ~/.colima/docker.sock /var/run/docker.sock
every time aftercolima start
saileshkotha commentedon Aug 1, 2022
this works for me
Trekoid commentedon Aug 30, 2022
If you setup the
DOCKER_HOST
environment variable to point to colima in your shell configuration, dive (and other docker tools) will work out of the box. No need to manually update a symbolic link.~/.zshrc
file.~/.bashrc
.export DOCKER_HOST=unix://$HOME/.colima/docker.sock
to the file.source ~/.zshrc
orsource ~/.bashrc
to apply the changes to the existing terminal session.ErlanBelekov commentedon Sep 5, 2022
+1
wujek-srujek commentedon Feb 19, 2023
According to colima FAQ what is missing in dive is support for Docker contexts (https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running):
However, some applications are not aware of Docker contexts and may lead to the error.
feat(docker): Honor the host specified in current docker context (wag…
feat(docker): Honor the host specified in current docker context (wag…
4 remaining items