Replies: 1 comment 7 replies
-
What is your goal? Do you actually want each podman container running as a different User or do you want containers running with different UIDs? Are you dealing with real users ? |
Beta Was this translation helpful? Give feedback.
7 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm currently looking for a way to interact with podman from my C/C++ application and scale this up for multiple, unprivileged users.
I see there's a RESTful API where one can start
podman
as a service and listen for incoming requests.The problem I have with this is scaling things up, in terms of users who need to be able to manage containers.
The podman instance started as a service is started as a specific (unprivileged) user and I can't tell it to manage a container (run/stop/create) for a different host user.
What would be a good solution here?
A podman instance started for each user who wants to manage containers?
I was thinking also of running my application as a privileged user which, in turn, using system calls would call
podman
as the unprivileged user.myapp:
su - user1 -c podman run -d image1
The error handling I think will be really clunky this way.
Is there a C/C++ library to interact with
podman
instead?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions