[init] Make cgroups v2 the default
jacobweinstock opened this issue · comments
Description
Hello. I would love to see cgroups v2 be the default in the init package. Currently, cgroups v1 is the default. See ref. While there is a kernel parameter, linuxkit.unified_cgroup_hierarchy=1
, to enable cgroups v2 this presents a challenge when some services (like Docker) in the Linuxkit build want/require cgroups v2. We must rely on the consumer that runns the Linuxkit build to provide the kernel parameter. While documenting this is fine, it leaves open the possibility of a user not setting this, having services fail, and making the experience challenging. I'm willing to make the PR. Thanks!
FYI, making cgroups v2 was referenced in #3719 back in 2021.
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):