-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
ssh-forwarding is not working on colima version 0.3.2
#127
Comments
It is supported, though I agree the documentation is lacking a bit. SSH Auth SockColima must be started with Docker Runtimeexport SSH_AUTH_SOCK="$(colima ssh echo '$SSH_AUTH_SOCK')"
docker run -it -v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK -e SSH_AUTH_SOCK ubuntu
# the ssh-agent works now, you may need to install openssh-client and git Containerd RuntimeNote: single quote is used to prevent the host shell from interpreting the variables. nerdctl run -it -v '$SSH_AUTH_SOCK:$SSH_AUTH_SOCK' -e SSH_AUTH_SOCK='$SSH_AUTH_SOCK' ubuntu
# the ssh-agent works now, you may need to install openssh-client and git |
I'll try it and report back |
this works but I would not that then the ssh-add commands outside the container won't work (as they are using the but it can be closed ❤️ |
For anyone searching for this problem, I wanted to add that I never could get This is what I got to work for me:
|
I got it working with |
Issue
I have a container that needs the ssh-agent for managing connections, and I saw there are multiple issues that note that in 0.3.x it will be fixed.
how to test
stuff about my machine
$ uname -a Darwin MacBook-Pro 20.6.0 Darwin Kernel Version 20.6.0: XXX; root:xnu-XXX/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 Darwin $ colima version colima version 0.3.2 git commit: 272db4732b90390232ed9bdba955877f46a50552 runtime: docker arch: x86_64 client: v20.10.7 server: v20.10.11
related
#66
#64
#56
The text was updated successfully, but these errors were encountered: