# Remote API with Docker for Mac (BETA)

**URL:** <https://forums.docker.com/t/remote-api-with-docker-for-mac-beta/15639>\
**Category:** Docker Desktop\
**Tags:** beta\
**Created:** [June 16, 2016, 9:08am UTC](https://forums.docker.com/t/remote-api-with-docker-for-mac-beta/15639 "2016-06-16T09:08:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pliljenberg](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/pliljenberg/32/11394_2.png) [@pliljenberg](https://forums.docker.com/u/pliljenberg)\
**Post date:** [June 16, 2016, 9:08am UTC](https://forums.docker.com/t/remote-api-with-docker-for-mac-beta/15639/1 "2016-06-16T09:08:14Z")

</div>

Is the Remote API available on Docker for Mac?  
With docker-machne and regular linux docker versions I can access the API using localhost:2375/2376.  
This doesn’t seem to work on Docker for Mac?

---

<div class="post-metadata">

**Author:** ![pliljenberg](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/pliljenberg/32/11394_2.png) [@pliljenberg](https://forums.docker.com/u/pliljenberg)\
**Post date:** [June 16, 2016, 9:27am UTC](https://forums.docker.com/t/remote-api-with-docker-for-mac-beta/15639/2 "2016-06-16T09:27:01Z")

</div>

Workaround - using ‘socat’:

`$ socat -d TCP-LISTEN:2376,range=127.0.0.1/32,reuseaddr,fork UNIX:/var/run/docker.sock`

`$ curl localhost:2376/version`  
`{"Version":"1.11.2","ApiVersion":"1.23","GitCommit":"56888bf","GoVersion":"go1.5.4","Os":"linux","Arch":"amd64","KernelVersion":"4.4.12-moby","BuildTime":"2016-06-06T23:57:32.306881674+00:00"}`

---

<div class="post-metadata">

**Author:** ![aleveille](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/aleveille/32/9905_2.png) [@aleveille](https://forums.docker.com/u/aleveille)\
**Post date:** [June 16, 2016, 7:46pm UTC](https://forums.docker.com/t/remote-api-with-docker-for-mac-beta/15639/3 "2016-06-16T19:46:47Z")

</div>

That’s a cool hack!

Thanks for sharing

---

<div class="post-metadata">

**Author:** ![mishail](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@mishail](https://forums.docker.com/u/mishail)\
**Post date:** [June 16, 2016, 10:38pm UTC](https://forums.docker.com/t/remote-api-with-docker-for-mac-beta/15639/4 "2016-06-16T22:38:17Z")

</div>

You can even run `socat` in the Docker for Mac itself  
`docker run -d -v /var/run/docker.sock:/var/run/docker.sock -p 2376:2375 bobrik/socat TCP4-LISTEN:2375,fork,reuseaddr UNIX-CONNECT:/var/run/docker.sock`

---

<div class="post-metadata">

**Author:** ![codenvy](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@codenvy](https://forums.docker.com/u/codenvy)\
**Post date:** [July 3, 2016, 5:27am UTC](https://forums.docker.com/t/remote-api-with-docker-for-mac-beta/15639/5 "2016-07-03T05:27:14Z")

</div>

Does anyone know other ways that do not require installation of such utilities as socat?

---

<div class="post-metadata">

**Author:** ![llitfkitfk](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/llitfkitfk/32/9099_2.png) [@llitfkitfk](https://forums.docker.com/u/llitfkitfk)\
**Post date:** [July 3, 2016, 12:16pm UTC](https://forums.docker.com/t/remote-api-with-docker-for-mac-beta/15639/6 "2016-07-03T12:16:00Z")

</div>

Try this:  
docker run -p 3375:2375 -v /var/run/docker.sock:/var/run/docker.sock -d -e PORT=2375 shipyard/docker-proxy

---

<div class="post-metadata">

**Author:** ![childnode](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/childnode/32/12034_2.png) [@childnode](https://forums.docker.com/u/childnode)\
**Post date:** [July 5, 2016, 5:24am UTC](https://forums.docker.com/t/remote-api-with-docker-for-mac-beta/15639/7 "2016-07-05T05:24:22Z")

</div>

the question is: is this just a “missing beta feature” or is it “missing by design”?  
I hope not to find more workarounds in the near future but port 2375 being exported per default 🙂

P.S: found this thread [[worked around] Docker HTTP(S) API no longer available in beta9?](https://forums.docker.com/t/worked-around-docker-http-s-api-no-longer-available-in-beta9/10474) via [https://github.com/bmuschko/gradle-docker-plugin/issues/235](https://github.com/bmuschko/gradle-docker-plugin/issues/235) and related docker-java issues that read like “we won’t fix that, use the damn socket” ☹

P.S: the #known-issues do list this “solutions” too:

> **[Logs and troubleshooting](https://docs.docker.com/docker-for-mac/troubleshoot/#/known-issues)**
>
> Here is information about how to diagnose and troubleshoot problems, send logs and communicate with the Docker for Mac team, use our forums and Knowledge Hub, browse and log issues...
