Execute OCI hooks as non root #22282
Unanswered
dominicmeyer
asked this question in
Q&A
Replies: 1 comment
-
Just brainstorming here. This a half-baked idea:
|
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi,
I wanna create a local OCI hook, but I noticed they always seem to be run as root user.
I tested this by just creating a hook, which points to a script:
whoami > /tmp/test.txt
I wanna access the other running containers through the podman cli, but because the hook is run as root I can't access them.
Is there right now a way of changing this behaviour?
Of course I could use
But then I have to hardcode my password into this script.
Sorry if I might have missed something in the Documentation, but I couldn't find something like this.
Beta Was this translation helpful? Give feedback.
All reactions