dobi icon indicating copy to clipboard operation
dobi copied to clipboard

[Windows] Can't bind "/var/run/docker.sock"

Open willseward opened this issue 8 years ago • 2 comments

https://github.com/dnephin/dobi/blob/master/tasks/job/run.go#L301

This file doesn't exist on Windows. Should there be a meta.provide_docker: option to disable?

willseward avatar Jan 19 '17 15:01 willseward

My assumption was that on windows $DOCKER_HOST is always set. I guess this isn't the case anymore with named pipes.

It looks like the default used by the docker client on windows is npipe:////./pipe/docker_engine. I have no idea if this path can be bind mounted into a container. Would you happen to know anything about this? I'll have to look into it further.

As a workaround, for now you can set $DOCKER_HOST.

dnephin avatar Jan 19 '17 20:01 dnephin

It sounds like bind mounting the named pipe isn't going to work, and there isn't another way to do this (https://github.com/docker/docker/issues/25961).

I think the logic here should be extended so that it's an error if DOCKER_HOST isn't set on windows if provides_docker is enabled.

dnephin avatar Jan 19 '17 20:01 dnephin