Support for sharing unix sockets
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
- mount a directory containing unix sockets like so: '-v "/directorywithsockets:/otherdirectory"'
- attempt to send data to/from the host/container via the socket
This is on the roadmap.
Interestingly, even a socket created in the container is non-functional if it was created on a mounted volume of the host.
Any ETA on this? :)
Currently it's blocking https://github.com/hashicorp/nomad/issues/1091 and other projects :)
This is currently scheduled for resolution in November. Sorry for the delay.
@dsheets okay, will it be available in beta builds beforehand?
Our goal is to ship it in beta builds in November.
amazing @dsheets - if you need any testing or otherwise beforehand, I'm willing to help out!
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?
We are in November now :) Any guess when this will be in Beta? This feature blocks a lot for us.
Any updates? Even a mention that this feature has been abandoned would be better than nothing.
The feature has not been abandoned. It is still on the roadmap. Thanks for your patience.
It is the last day of November. Any update on when this will be in the beta @dsheets?
Work has begun but is currently delayed behind performance work. Sorry about that. Stay subscribed to get updates. Thanks for your patience!
Any updates on this?
I've started using https://github.com/avsm/docker-ssh-agent-forward to work around this issue
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.
+1
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.
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.
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