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

Add --cgroup-manager to the podman run command #23917

Closed
brunzefb opened this issue Sep 10, 2024 · 3 comments
Closed

Add --cgroup-manager to the podman run command #23917

brunzefb opened this issue Sep 10, 2024 · 3 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@brunzefb
Copy link

brunzefb commented Sep 10, 2024

Feature request description

podman build has a --cgroup-manager. Add the same flag to podman run.

Suggest potential solution

Change the code to add the flag to podman run.

Have you considered any alternatives?

My current workaround is to modify the containers.conf with
sed -i 's/\[engine\]/\[engine\]\ncgroup_manager = "cgroupfs"/' /usr/share/containers/containers.conf
While this works, its harder than just passing the option, which is also more explicit.

Additional context

Context is a Jenkins build agent which is itself a pod (running container) It does a docker-in-docker build, followed by a podman run. `

podman run -it ACCOUNT.dkr.ecr.us-east-2.amazonaws.com/POD:qa_1_0-1c1b272-89 
time="2024-09-06T21:32:39-04:00" 
level=warning msg="Failed to add conmon to systemd sandbox cgroup: 
      dial unix /run/systemd/private: connect: no such file or directory"
@brunzefb brunzefb added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 10, 2024
@giuseppe
Copy link
Member

you need to pass it to the podman command itself:

podman --cgroup-manager $MANAGER run ...`

@giuseppe
Copy link
Member

have you tried it? Does it work?

@rhatdan
Copy link
Member

rhatdan commented Sep 12, 2024

$ podman --help | grep cgroup-manager
--cgroup-manager string Cgroup manager to use ("cgroupfs"|"systemd") (default "systemd")

@rhatdan rhatdan closed this as completed Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants