-
Notifications
You must be signed in to change notification settings - Fork 118
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
Docker-compose: ssh agent forwarding #5303
Comments
Issues go stale after 90 days of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Hey! Same problem here. SSH agent forwarding stops working. UPD: |
Any update on this topic? |
Also looking for the solution. It seems related to running image as non-root user:
Is there any solution if we’re running image as non-root user? Currently only feasible solution is to brute-force |
There are a few different (but related) issues w/ SSH agent forwarding in Docker for Mac:
Given that the error message from openssh is similar for both issues, it's very painful to get agent forwarding working when using a YubiKey (though I guess that shouldn't be surprising 🙄). To get things working for me, I ended up:
Hope this summary helps any future travelers - good luck 👋. |
Information
I'm unable to get ssh-agent working inside the container. However, it works properly with
docker run -it -v...
.Diagnostic logs
Output
Host:
Container:
docker-compose.yml
php.dockerfile
The text was updated successfully, but these errors were encountered: