Skip to content
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

Bug | Docker daemon doesn't seem to be responding on Mac #221

Closed
Franr opened this issue Sep 18, 2023 · 4 comments
Closed

Bug | Docker daemon doesn't seem to be responding on Mac #221

Franr opened this issue Sep 18, 2023 · 4 comments
Assignees
Labels
bug Something isn't working minor

Comments

@Franr
Copy link
Contributor

Franr commented Sep 18, 2023

Describe the Bug

If you run leverage on version 24.0.6, build ed223bc on Mac, apparently docker-py tries to connect to the docker socket on the wrong place.

Expected Behavior

Rather than /var/run/docker.sock, we should try to establish the connection through unix://$HOME/.docker/run/docker.sock instead

Environment (please complete the following information):

Docker version 24.0.6, build ed223bc
leverage version 1.10.2
MacOS Ventura 13.5

Additional Context

docker/docker-py#3146
https://docs.docker.com/desktop/release-notes/#4131
docker/for-mac#6529
portainer/portainer#9945 (comment)

@Franr Franr added the bug Something isn't working label Sep 18, 2023
@kwesiRutledge
Copy link

+1 on this. When I initialized a DockerClient using this as the base_url the library worked as intended. When I tried to use client = docker.from_env(), an error was thrown.

@diego-ojeda-binbash
Copy link
Collaborator

diego-ojeda-binbash commented Oct 23, 2023

Fixes to these issues have been documented here: binbashar/le-ref-architecture-doc#194

@kwesiRutledge that's still a PR but feel free to get the fixes from there until proper docs are released.

@diego-ojeda-binbash
Copy link
Collaborator

The documentation with the fix was merged and is available here: https://leverage.binbash.co/user-guide/troubleshooting/general/#leverage-cli-cant-find-the-docker-daemon

@exequielrafaela
Copy link
Member

@diego-ojeda-binbash, thank you for your collaboration on this project. I've just published the latest documentation release here.

@kwesiRutledge
Kwesi, I appreciate your feedback immensely. It's fantastic to see that you're most probably utilizing Leverage for your AWS projects. I'd like to extend an invitation for you to join our community Slack channel. It's a great place for prompt support and collaborative discussions on any future needs you might have. You can join us here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor
Projects
None yet
Development

No branches or pull requests

5 participants