-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use it in a docker compose file #2
Comments
I would expect |
Its because it cant prompt me and ask for the password when its running all the containers in the same view |
@sp90 but if you start the ssh-agent beforehand: # start the ssh-agent in the background
eval "$(ssh-agent -s)"
Agent pid 59566 then the agent would already have your keys loaded? |
@sp90 which version of Docker/docker-compose are you using, and on what host? |
Docker mac: Version 1.11.1-beta12 (build: 7528) |
So @sp90 I just (recently) ran into the same issue with the Docker for Mac beta build, trying to get this to work. After digging a bit, I'm pretty sure this is just a current limitation of the Docker for Mac beta. Per their help documentation:
Because the ssh agent on a mac is a socket, it sounds like this isn't (yet) capable of being correctly mounted into the container w/ Docker for Mac. |
ahh makes sense 👍 |
Just to follow up on this. Using Docker for Mac, mounting ~/.ssh as a volume seems to work perfectly well:
|
@kevin-cantwell and i agree, i've gotten it to worker later 👍 |
Cool. Should i add it somewhere in the docs for clearity? |
@fruitl00p maybe just a link to this issue, and a little text explaining that updating docker for mac solves the problem? |
👍 see the commit 0018e20 |
This docker-tunnel is nicely done. I could pass my key as an argument and it worked like a sharm. However, I couldn't get it to work with the ssh-agent with Docker for Mac and I am quite puzzled by the Mac support note in the readme (pointing to this thread) and which I interpreted as "now it should be working". According to @saranrapjs the ssh agent on a mac is a socket and cannot be correctly mounted with Docker for Mac. This is confirmed by those Docker for Mac issues $SSH_AUTH_SOCK is not being forwarded to docker and Support for sharing unix sockets #483 this is indeed a Docker for Mac limitation. As of today, both issues (open is Aug 2016) are still Open. According to @kevin-cantwell : "Just to follow up on this. Using Docker for Mac, mounting ~/.ssh as a volume seems to work perfectly well" Mounting ~/.ssh wasn't enough to have the ssh-agent authentication work for me with Docker for Mac Version 18.03.0-ce-mac58. What would be the actual status about making docker-tunnel work with SSH_AUTH_SOCK and the current versions of Docker for Mac ? |
@vce-xx i'm not a mac user and have particular other issues with docker on mac's through a collegue of mine... Thus I wont be able to assist here... Will ping some docker/mac users to see how they do it |
@fruitl00p I could work around the Docker for Mac limitation with docker-ssh-agent-forward. docker-tunnel works perfectly on my Mac now. Thanks. |
@vce-xx Awesome! I'll leave this open and await the pings from mac users in my vicinity :) |
Hey kingsquare nice tool,
I would love to have this working in docker-compose have you tested it out:
right now i have the following config:
The text was updated successfully, but these errors were encountered: