You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to assign every new created container (by default) to my CgroupParent that can be set in containers.conf (not yet available option)
Currently i'm able to do it only using cli with 'run' : podman run -it --cgroup-parent=user ubuntu sh
If additional parameter in .conf is not an option for us,
could you explain how could i make use of 'cgroups = "disabled"' without specifying what is my parent group 🤔 ?
# Control container cgroup configuration# Determines whether the container will create CGroups.# Options are:# `enabled` Enable cgroup support within container# `disabled` Disable cgroup support, will inherit cgroups from parent# `no-conmon` Do not create a cgroup dedicated to conmon.#cgroups = "disabled"
If additional parameter in .conf is not an option for us, could you explain how could i make use of 'cgroups = "disabled"' without specifying what is my parent group 🤔 ?
you could move the current process to the target cgroup, and then use --cgroups=disabled to reuse it
Thank you @giuseppe , i will test it
edited:
Looks like for now i will stick with cgroups = "disabled".
In my case i use libcgroup to delegate all processes runs by one user to given cgroup.
Even though my case is solved, i will leave this issue opened, maybe somebody will find time to create PR
I see this quite convenient to have all containers/pods in one cgroup by indicating in containers.conf something like cgroup-parent="user" without explicitly pointing this every time in cli command.
I'm using podman 5.3.0 with cgroup v2 but without systemd.
I have created rootless cgroup "user" equipped with all needed controllers inherited from main cgroup:
I would like to assign every new created container (by default) to my CgroupParent that can be set in containers.conf (not yet available option)
Currently i'm able to do it only using cli with 'run' :
podman run -it --cgroup-parent=user ubuntu sh
If additional parameter in .conf is not an option for us,
could you explain how could i make use of 'cgroups = "disabled"' without specifying what is my parent group 🤔 ?
The text was updated successfully, but these errors were encountered: