hyperkit icon indicating copy to clipboard operation
hyperkit copied to clipboard

Connecting by Unix Socket

Open DavidHarrison opened this issue 9 years ago • 1 comments

Is there any way to connect with just the Unix socket (/var/lib/lxd/unix.socket) without having LXD listen to the network?

Thanks!

DavidHarrison avatar Jul 01 '16 17:07 DavidHarrison

Two libs for hitting unix:// sockets:

https://github.com/puppetlabs/net_http_unix/blob/master/README.md https://github.com/excon/excon/blob/master/README.md#unix-socket-support

It seems to be easier to pivot directly to them than trying to adapt sawyer/faraday to handle unix://: https://stackoverflow.com/questions/39257339/using-faraday-to-make-http-requests-over-a-unix-socket

kfix avatar Mar 19 '18 02:03 kfix