Open richfitz opened 6 years ago
The docs say though:
Similarly, the Docker client can use -H to connect to a custom port. The Docker client will default to connecting to unix:///var/run/docker.sock on Linux, and tcp://127.0.0.1:2376 on Windows.
So if that's the case then there's not much that needs doing because getting access to the tcp://127.0.0.1:2376
will be very straightforward. I just need to track down a windows computer with docker and see
As of e67ddc06e9ceb819d614a7edd3d322e2248d596b, there's some groundwork to support faking this through httppipe though that package has not yet been made to work on windows. Not everything works (streaming in particular) but hopefully this will ease make it easier to do a full port
httppipe now works on windows, but not via appveyor (but that's just because of issues with linux vs windows images from the look of it). It's very much a stop-gap, but hopefully all the work can be isolated into the httppipe package now
Windows 7 via docker toolbox does not use named pipes but uses docker machine. Unfortunately it looks like there are issues with communication over the winssl curl driver, at least on @ojwatson's machine
Travis now supports windows:
I can try to find some time to try it out, but before that: @richfitz What's the current state? Any updates not mentioned here?
Current state is just
When I've asked around, I've not yet found anyone really doing much with docker on windows. Perhaps with win10 that will change more
I'll represent as a Windows 10 user running Docker! :smile:
I've not yet been able to get stevedore:::httppipe_available()
to pass and am stuck with errors that the docker module is not available. I can manually load reticulate
and run reticulate::import(docker)
so I'm a little stumped as to why the stevedore calls aren't working.
Working code on my system:
reticulate::py_run_string("import sys")
reticulate::py_eval("sys.path")
reticulate::py_run_string("sys.path.insert(1, 'C:/users/davidski/Documents/R/win-library/3.5/stevedore/py')")
reticulate::py_run_string('import httppipe')
Could you add this as a new issue please @davidski, and can you please show the output of stevedore:::httppipe_available(verbose = TRUE)
there?
Didn't mean to hijack the thread! 😄 I wanted to voice support for Windows support, where possible, and offer myself as a test subject where/if needed. I was able to get httppipe_available()
to work. Not quite sure what I did outside of a full RStudio restart. There's no caching in reticulate AFAIK so I'm not sure why that module was failing to import. Perhaps it just needed a good night's sleep. 😉
No worries :grin:
@weshinsley has plans for native named pipe support - hopefully we'll make some progress on that this year
Getting windows support working probably requires implementing the contents of
R/http.R
to work with named pipes (likely this file will split into a transport layer - simple in the tcp case, fairly simple for unix socket and possibly complex for named pipes?). It's possible that the?fifo
function can do most of what we need