lazydocker icon indicating copy to clipboard operation
lazydocker copied to clipboard

brew install lazydocker don't work

Open NedkoHristov opened this issue 2 years ago • 9 comments

brew install lazydocker don't work. The message is:

Docker event stream returned error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

I'm running it on MacBook Pro M1. Docker is running.

NedkoHristov avatar Oct 31 '22 15:10 NedkoHristov

Same thing was happening to me, it's a bug in Docker itself fixed two days ago; see changelog for 4.13.1

listik avatar Nov 02 '22 09:11 listik

Had the same problem, can confirm that the latest Docker update fixes the issue.

giammyisjammy avatar Nov 02 '22 11:11 giammyisjammy

After installing lazydocker both the one and the other method of application in the latest MacOs does not start.

Zbigniewlatka avatar Feb 09 '23 08:02 Zbigniewlatka

@Zbigniewlatka is there an error message? Is it a M1 mac?

mark2185 avatar Feb 09 '23 08:02 mark2185

there is no message. MacBook 2020 M1. :)

Zbigniewlatka avatar Feb 09 '23 10:02 Zbigniewlatka

Found my solution here, on MacOS looks like the docker socket is somewhere else by default so I had to create a symlink

sudo ln -s ~/Library/Containers/com.docker.docker/Data/docker.raw.sock /var/run/docker.sock
DOCKER_HOST=unix:///var/run/docker.sock docker ps # test that it works using linked socket file

Source -> https://stackoverflow.com/a/74148162

hay-kot avatar Apr 22 '23 05:04 hay-kot

The solution above worked for me, but that's pretty annoying and might make some people stop using this app. Any expectations to include this fix to the main lib?

NicolasLopes7 avatar Aug 21 '23 12:08 NicolasLopes7

Is this something that can be fixed by bumping the docker SDK from within lazydocker or do users just need to update their docker versions?

jesseduffield avatar Aug 21 '23 13:08 jesseduffield

I think this may be fixed in the latest Docker Desktop release, or at least there is an option to get the behavior I would expect.

CleanShot 2023-08-21 at 09 48 51@2x

hay-kot avatar Aug 21 '23 14:08 hay-kot