Closed klirix closed 1 week ago
https://github.com/oven-sh/bun/pull/2777 should probably solve it
I really need this for docker API support. Is there anything that can be done to help this along? 🙏
I hate being the guy, but same here! I can't use Dockerode because of this with Bun. The alternative is to run spawn but is so much trouble to gather all the information :(
I am still unable to use dockerode with Bun. 😭
This was implemented quite awhile ago.
From a guide page:
const unix = "/var/run/docker.sock";
const response = await fetch("http://localhost/info", { unix });
const body = await response.json();
console.log(body); // { ... }
What version of Bun is running?
0.5.9
What platform is your computer?
Linux 5.15.90.1-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
Run docker with default config.
What is the expected behavior?
HTTP response from unix socket
What do you see instead?
Throws
FailedToOpenSocket: Was there a typo in the url or port?
Additional information
No response