Problem with passing SSH into a rootless container #28101
Unanswered
stefanfrede
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
What O/S are you running on the host? Could this be an SELinux issue? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
👋 I managed to set up Forgejo as a non-root user using Quadlet files:
As far as I can tell, it is working like a charm.
Except for instance commit signing:
https://forgejo.org/docs/next/admin/advanced/signing/.
I feel like I've tried everything to make it work.
The problem is that the user inside the container is not permitted to access SSH from the host, and I can't work out how to change this.
Or maybe what I think is passing SSH into the container is actually not passing anything at all.
Here is my attempt, where I feel I have come close to finding a solution.
With
Exec=echo ${SSH_AUTH_SOCK}I get/run/user/1000/openssh_agent, which I assume is correct.Inside the container it looks like this:
With
echo $SSH_AUTH_SOCKinside the container I get/ssh-agent🤯That is where I keep going round in circles without getting any closer.
I would greatly appreciate any push that brings me closer 🙏
Beta Was this translation helpful? Give feedback.
All reactions