Skip to content
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

Run single container as root, keep others rootless #785

Open
Urhengulas opened this issue Sep 29, 2023 · 1 comment
Open

Run single container as root, keep others rootless #785

Urhengulas opened this issue Sep 29, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Urhengulas
Copy link

Is your feature request related to a problem? Please describe.
One of my containers needs root access, because it calls the perf_event_open syscall. Therefore it needs to be executed rootfull with sudo podman run (notice the sudo). Consequently it also needs to be executed as sudo podman-compose up. But if I understand it correctly that will put all the containers in root mode, while I just need it for one of them.

Describe the solution you'd like
I'd like to specify the container to be put in root mode and keep the other containers rootless. I can imagine it either as an argument to podman-compose, e.g. podman-compose --root-mode container_name, or as a key in the compose.yml.

Describe alternatives you've considered
Starting it with sudo podman-compose up works, but I'd prefer rootless as much as possible.

Maybe there is an option already, but I did not find one.

Additional context
None

@f1sle
Copy link

f1sle commented Oct 22, 2024

Run it separately with sudo podman and start others with podman-compose?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants