Skip to content

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

Closed
vmasutin wants to merge 3 commits into
anchore:mainfrom
vmasutin:read-default-docker-context
Closed

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

Conversation

@vmasutin

@vmasutin vmasutin commented Aug 5, 2023

Copy link
Copy Markdown

Reading dockerd 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>
@vmasutin vmasutin changed the title Trying to read docker host/socket location from the current docker context Read docker host/socket location from the current docker context Aug 5, 2023
Signed-off-by: Valery Masiutsin <val.masutin@gmail.com>
@vmasutin vmasutin force-pushed the read-default-docker-context branch from e02725b to fcd1803 Compare August 5, 2023 15:53
@vmasutin vmasutin closed this Aug 5, 2023
@vmasutin

vmasutin commented Aug 5, 2023

Copy link
Copy Markdown
Author

closed in favour of New PR

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