for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Support for sharing unix sockets

Open BouncyLlama opened this issue 10 years ago • 134 comments

Expected behavior

When mounting a directory containing unix sockets the sockets should function the same as they do on a Linux host.

Actual behavior

The socket is 'there', but non-functional.

Information

After reading several forum threads, it appears that there is a workaround with socat over TCP, but this is rather slow.

The documentation has this to say: 'Socket files and named pipes only transmit between containers and between OS X processes -- no transmission across the hypervisor is supported, yet' Hopefully this is a planned feature already, but I did not see any existing issues open in this tracker for this particular issue, although it relates to #410 which asks specifically for SSH_AUTH_SOCK to be supported.

Host OS: Mac OSX 10.10.5

Steps to reproduce the behavior

  1. mount a directory containing unix sockets like so: '-v "/directorywithsockets:/otherdirectory"'
  2. attempt to send data to/from the host/container via the socket

BouncyLlama avatar Aug 31 '16 16:08 BouncyLlama

This is on the roadmap.

dsheets avatar Sep 01 '16 10:09 dsheets

Interestingly, even a socket created in the container is non-functional if it was created on a mounted volume of the host.

udondan avatar Sep 19 '16 14:09 udondan

Any ETA on this? :)

Currently it's blocking https://github.com/hashicorp/nomad/issues/1091 and other projects :)

jippi avatar Oct 15 '16 10:10 jippi

This is currently scheduled for resolution in November. Sorry for the delay.

dsheets avatar Oct 15 '16 13:10 dsheets

@dsheets okay, will it be available in beta builds beforehand?

jippi avatar Oct 15 '16 13:10 jippi

Our goal is to ship it in beta builds in November.

dsheets avatar Oct 15 '16 13:10 dsheets

amazing @dsheets - if you need any testing or otherwise beforehand, I'm willing to help out!

jippi avatar Oct 15 '16 14:10 jippi

Our goal is to ship it in beta builds in November.

@dsheets That statement makes me think the work for this is already underway. However, the status label is still "1-acknowledged". Is this currently being worked on, or still on the todo list?

Druotic avatar Oct 28 '16 19:10 Druotic

We are in November now :) Any guess when this will be in Beta? This feature blocks a lot for us.

BlinkyStitt avatar Nov 09 '16 20:11 BlinkyStitt

Any updates? Even a mention that this feature has been abandoned would be better than nothing.

Druotic avatar Nov 16 '16 14:11 Druotic

The feature has not been abandoned. It is still on the roadmap. Thanks for your patience.

dsheets avatar Nov 16 '16 15:11 dsheets

It is the last day of November. Any update on when this will be in the beta @dsheets?

BlinkyStitt avatar Nov 30 '16 21:11 BlinkyStitt

Work has begun but is currently delayed behind performance work. Sorry about that. Stay subscribed to get updates. Thanks for your patience!

dsheets avatar Dec 01 '16 11:12 dsheets

Any updates on this?

gugahoi avatar Dec 22 '16 23:12 gugahoi

I've started using https://github.com/avsm/docker-ssh-agent-forward to work around this issue

BlinkyStitt avatar Dec 28 '16 01:12 BlinkyStitt

Any updates @dsheets ? Is there an issue tracking the performance work? If that is going to block for much longer, I am planning to spend some time cleaning up https://github.com/avsm/docker-ssh-agent-forward but if docker will have proper support soon I won't bother.

BlinkyStitt avatar Jan 19 '17 20:01 BlinkyStitt

+1

KFoxder avatar Jan 19 '17 21:01 KFoxder

Support for this is planned and has been started but is delayed indefinitely behind other work. @WyseNynja I would recommend cleaning up avsm/docker-ssh-agent-forward in the meantime.

dsheets avatar Jan 20 '17 10:01 dsheets

The docker-ssh-agent-forward workaround is working well for me, I've raised avsm/docker-ssh-agent-forward#9 with some fixes.

Keeping fingers crossed for this fix tho.

johnmccabe avatar Jan 31 '17 06:01 johnmccabe

I've merged a bunch of changes from avsm's helpful fix into a new fork that is on docker hub: https://github.com/uber-common/docker-ssh-agent-forward

BlinkyStitt avatar Feb 13 '17 20:02 BlinkyStitt