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

Read docker host/socket location from the current docker context #194

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vmasutin
Copy link

@vmasutin vmasutin commented Aug 5, 2023

Reading docker socket/host location from the current docker context.
It resolves the issues with lima/colima/docker desktop set ups.

This PR probably needs more work (tests, style, etc), I will appreciate the comments.
Parts of the code are coming from https://github.com/docker/cli repo.
Changes were tested with syft and local lima setup on MacOS.

…ntext

Resolves issues with lima/colima/docker desktop (they all have one thing
in common - dockerd sockets are in custom locations)

Signed-off-by: Valery Masiutsin <[email protected]>
Signed-off-by: Valery Masiutsin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant