-
Notifications
You must be signed in to change notification settings - Fork 550
Support windows named pipe #875
Comments
Thanks for providing a link on how the named pipe can be accessed as a File, that is useful to know 👍 |
So would things just work if DefaultDockerClient just stripped "npipe:////./pipe/docker_engine" down to "//./pipe/docker_engine" and treated that as a file and talked to it like https://stackoverflow.com/a/2605884/553994. Hm might be a fair amount of work now that I look at how we talk to Unix sockets. |
I wanted to give this a try, here is what I was able to do so far: hazsetata@446ef75 It uses a RandomAccessFile and wraps it in a Socket (supporting only the bare minimal things that are needed to make this work). I then created a SocketFactory very similar to the Unix socket implementation's and modified DockerHost / DefaultDockerClient to support it. It compiles, runs but some of the tests hang. I'm not sure yet what causes that, one possibility that I'll have to check is that because the code uses a file, the read() methods do not timeout (with a real Socket they would). If supporting that is a requirement, I'm not sure yet how to proceed. Any comments / ideas would be very welcome! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
As far I understand, this issue still hasn't been fixed. Could someone reopen it, then? |
Hi, i'm author of npipe implementation in fabric8io/docker-maven-plugin that you mentioned, see fabric8io/docker-maven-plugin@8112cdf#diff-1fec0d18db7198d4e068ea33ca319dca. I'll rewrite it for this project, PR coming soon ... |
Signed-off-by: jzajic <[email protected]>
Implemented in PR #1114, works just fine on my Win 10 machine. |
Signed-off-by: jzajic <[email protected]>
Fix Issue #875 - windows named pipes
This update fixes issue described here spotify/docker-client#875 about supporting Windows named pipes.
@jan-zajic I am sorry I know this is old, but do you remember why you used a We have problems on Windows because we need concurrent connections to docker but this only supports one ( |
Feature request
Support Windows named pipe like this :
Example in fabric8io docker maven plugin :
https://github.com/fabric8io/docker-maven-plugin/blob/master/src/main/java/io/fabric8/maven/docker/access/DockerConnectionDetector.java#L123
Extract from Docker for Windows Faq
The text was updated successfully, but these errors were encountered: