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.
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.