Open Slonegg opened 1 year ago
I personally don't have access to Windows host to implement it but I can leave some suggestions here. For the implementation, probably it'd be best to use windows-rs. All of the connectors like TCP, UNIX, TLS are created using hyper. For reference, here is unix connector from hyperlocal. Something similar would have to be implemented for windows npipes, and from what I saw there is no implementation available yet.
Here is how Docker calls npipe requests https://github.com/moby/moby/blob/9e6370819bf61de7583ea00af13fcbedd2bbbfe7/testutil/request/npipe_windows.go#L10
Is it possible to add support for connecting to Docker using
npipe:////./pipe/docker_engine
like in this guide? Currently I'm usingtcp://localhost:2375
protocol. However, to use that protocol it is necessary to enable "Expose daemon on tcp://localhost:2375 without TLS" feature in Docker settings which is not convenient if you need to configure many machines. It is also slower and less secure.