-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document usage of new DockerApi({host: '//./pipe/docker_engine'});
for windows
#9
Comments
Sorry - ignore that link. Here is the relevant issue in dockerode, which will work if you set Setting I guess the doc changes from that python repo (which is what I was looking at) are still pretty good though... |
The linked issue appears to be talking about Docker Toolbox which is not recommended.
I have used |
In ES6:
Works on docker for windows. I guess that wasn't clear. Sorry for the confusion! |
It doesn't look like we have any tests that run on Windows so I don't think it would be a good idea to modify the code. The user running the code can assign the host parameter as you put in your comment. Is the windows host path documented anywhere? If so, you can go ahead a create a PR and add it to the README to show Windows Usage and link to the docker documentation. Thanks 👍 |
I am unable to locate definitive documentation on this. As I often say, if I am somehow missing something, I would VERY MUCH appreciate a pointer to reliable Docker on Windows documentation. Anyway, windows named pipe support is implicitly documented, e.g., in docker-py (one of the "official" clients, so probably will stay up to date). The named pipe path is defined here: And used here, if there is no address defined for the Docker socket on windows: So, does that count as documented? I would say no! But your call. I suspect this GitHub issue is probably enough for making this syntax somewhat discoverable... |
@davclark Thanks for the explanation! Since this isn't officially documented, let's just leave this issue open for other users who run into the same issue (hopefully it's not many). If other users start reporting this issue, this might be worth bringing complaints upstream to the Docker team so it can be officially documented. 🐳 |
Related: docker/for-win#1889 It basically says that the environment variable The docs mention that Windows users should always set this. I guess this is only applicable to Docker Compose. |
Yeah - that's a whole other can of worms that broke lots of stock users of docker-compose on docker for windows! Hopefully the default behavior will return to "working" in the next stable release of docker for windows... (right now you need to explicitly set |
Or, make it the default when host is not specified on windows? Currently, the default is /var/run/docker.sock on all platforms, which is an error on windows.
Happy to submit a pull request to this effect. It's a trivial change. Dockerode implemented it a couple weeks ago, though it's been a known feature for a while - I'd recommend something almost identical:
datmo/datmo@7432d61
The text was updated successfully, but these errors were encountered: