-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Unable to connect to docker.sock file while running dive #453
Comments
Edit 2023-07-10 Original proposed solution A Docker upgrade on Mac moved the An easy fix is: ln -s ~/.docker/run/docker.sock /var/run/docker.sock If sudo ln -s ~/.docker/run/docker.sock /var/run/docker.sock Note sure how long this fix can work, but for now, it is doing the job! |
This looks like a change in Docker Desktop 4.18 to allow installation on macOS without needing admin privileges: https://www.docker.com/blog/docker-desktop-4-18/ . It still asks for admin privileges, but if you don't grant them then tools like dive won't work until you enable this new setting. |
This could be worth adding as a note to the installation steps. I ran into this issue too! I haven't used my personal computer in quite a long time for programming. My Docker client updated itself to Docker Desktop - and at no point during the upgrade process did it prompt me for a password (and luckily I kind of stumbled onto this fix myself) 😅 |
I get a similar error since I switched from Docker Desktop to colima at my MacBook (Ventura 13.3.1). Dive (0.11.0) can not load a local image. Docker version is 24.0.4.
|
The post of TG-KK in #397 (comment) helped me. |
For docker rootless: |
Awesome @Tantalor93 - this was sooo annoying thank you :) |
Following instructions to setup rootless docker on ubuntu 24.04 I end up with a $DOCKER_HOST of |
And did you run my command above? |
@williamdes I already have a
|
Seems explicit, does |
I setup it up last week. Everything working. Docker version 27.1.2, build d01f264 |
I have been trying to run dive on some of my images, after running
dive ubuntu:latest
I am seeing this error:Image Source: docker://ubuntu:latest Fetching image... (this can take a while for large images) Handler not available locally. Trying to pull 'ubuntu:latest'... latest: Pulling from library/ubuntu Digest: sha256:dfd64a3b4296d8c9b62aa3309984f8620b98d87e47492599ee20739e8eb54fbf Status: Image is up to date for ubuntu:latest docker.io/library/ubuntu:latest cannot fetch image Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
But I am able to use docker without any problems, docker is also running.
OS: MacOS 13.4
Docker engine: v23.0.5
The text was updated successfully, but these errors were encountered: