# Which DOCKER\_HOST?

**URL:** <https://forums.docker.com/t/which-docker-host/8802>\
**Category:** Docker Desktop\
**Tags:** windows\
**Created:** [April 9, 2016, 8:13pm UTC](https://forums.docker.com/t/which-docker-host/8802 "2016-04-09T20:13:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gesellix](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/gesellix/32/6950_2.png) [@gesellix](https://forums.docker.com/u/gesellix)\
**Post date:** [April 9, 2016, 8:13pm UTC](https://forums.docker.com/t/which-docker-host/8802/1 "2016-04-09T20:13:37Z")

</div>

I want to connect with a 3rd party client to the Docker for Windows engine. Using `unix:///var/run/docker.sock` doesn’t work. Which socket or connection string should I use?

---

<div class="post-metadata">

**Author:** ![rneugeba](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@rneugeba](https://forums.docker.com/u/rneugeba)\
**Post date:** [April 9, 2016, 10:43pm UTC](https://forums.docker.com/t/which-docker-host/8802/2 "2016-04-09T22:43:59Z")

</div>

Hi Tobias

do you want to connect it on the Windows host? Then in Beta6 (and with docker 1.11.0-rc3) the default is to connect to a named pipe called //./pipe/docker\_engine. We still support connecting to localhost:2375

Note, however, that we currently don’t support third party docker clients

rolf

---

<div class="post-metadata">

**Author:** ![gesellix](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/gesellix/32/6950_2.png) [@gesellix](https://forums.docker.com/u/gesellix)\
**Post date:** [April 10, 2016, 1:21pm UTC](https://forums.docker.com/t/which-docker-host/8802/3 "2016-04-10T13:21:24Z")

</div>

Hi Rolf,

thanks for the quick reply! Connecting to `localhost:2375` works.

Would it make sense for the “Docker for Windows” installer to configure the environment with an explicit value for `DOCKER_HOST`, then? Since the unix socket is the default in a clean environment (without `DOCKER_HOST`), existing client libraries and their users would be forced to configure the `DOCKER_HOST`. Otherwise they would need to check on which operating system they’re running, which feels not the way it could be.

I’m fine with the current lack of support for third party clients, nevertheless this minor issue might be relevant when other clients shall integrate as easy as possible. 🙂

Digging a bit deeper: do you know of any plans whether the named pipe and/or the tcp socket will be available “forever”?

Tobias

---

<div class="post-metadata">

**Author:** ![rneugeba](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@rneugeba](https://forums.docker.com/u/rneugeba)\
**Post date:** [April 11, 2016, 9:02pm UTC](https://forums.docker.com/t/which-docker-host/8802/4 "2016-04-11T21:02:02Z")

</div>

Hi Tobias

I don’t know what the plans are regarding the future and we don’t really want to set the DOCKER\_HOST env variable. Our plan for Docker for Windows is to support whatever the default is for the docker CLI. For this beta we support both the named pipe and localhost:2375 because the move to the named pipe on windows was a very recent change (in one of the 1.11 RCs IIRC) but we’ll probably remove the localhost:2375 support once the named pipe mechanism stabilises.

I think you’d have to check which OS you are running on anyway. On Unix the Unix domain socket is the default, on windows, i believe the named pipe is already or will become the default.

Rolf

---

<div class="post-metadata">

**Author:** ![gesellix](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/gesellix/32/6950_2.png) [@gesellix](https://forums.docker.com/u/gesellix)\
**Post date:** [April 11, 2016, 9:35pm UTC](https://forums.docker.com/t/which-docker-host/8802/5 "2016-04-11T21:35:37Z")

</div>

Hi Rolf,

thanks for the insights! At least _not_ to hear about named pipes going away is enough for me to be prepared for them.

Tobias
