Cannot connect to the Docker daemon
devashishRaj opened this issue · 5 comments
devashishRaj commented
installation method : brew install jesseduffield/lazydocker/lazydocker
brew config
HOMEBREW_VERSION: 4.1.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: d4444b563e24ac7c05a93121c464c02dfa04d44f
Last commit: 5 days ago
Core tap JSON: 01 Sep 16:13 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.06JH9bO1cO/org.xquartz:0
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_blizzard_avalanche
Clang: 14.0.3 build 1403
Git: 2.42.0 => /opt/homebrew/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 13.5.1-arm64
CLT: 14.3.1.0.1.1683849156
Xcode: 14.3.1
Rosetta 2: false
Error
Docker event stream returned error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
mark2185 commented
Can you run docker images
in the terminal without a problem?
devashishRaj commented
yes
mark2185 commented
Could you check if the docker.sock
is in ~/.docker/run/docker.sock
?
If so, try starting lazydocker
like so:
$> DOCKER_HOST=unix:///$HOME/.docker/run/docker.sock lazydocker
devashishRaj commented
yes this worked
michaeljdennis commented
I ran into this issue when switching from docker to docker-desktop. I am able to get around this error by using the following:
DOCKER_HOST=unix:///$HOME/.docker/desktop/docker.sock lazydocker
Debian: 12.1
Docker Desktop: 4.22.0 (117440)
Docker Engine: v24.0.5