Skip to content

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

Open
vmasutin wants to merge 2 commits into
anchore:mainfrom
vmasutin:read-default-docker-context3
Open

Read docker host/socket location from the current docker context#194
vmasutin wants to merge 2 commits into
anchore:mainfrom
vmasutin:read-default-docker-context3

Conversation

@vmasutin

@vmasutin vmasutin commented Aug 5, 2023

Copy link
Copy Markdown

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 <val.masutin@gmail.com>
Signed-off-by: Valery Masiutsin <val.masutin@gmail.com>
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