Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how to enable cgroup v1 support

Featured Replies

I'm using 6.12.14, by default system only support cgroup v2, but I have some docker only can run on cgroup v1, is there any solution to support both v1 and v2?

  • Community Expert

not very easily... Consider updating the containers or applications if possible, as cgroup v2 is the modern standard.

to use cgroup 1 Use a vm for cgroup1 dockers...

As I'm Not going to test this as this can be system breaking... But can point you in some areas...

 

if you call/cat:

cat /proc/cmdline

look for "unified_cgroup_hierarchy=0"

more form lxc / ich777 moving off cgroups 1... This may need to be added to syslinux to go back to cgroups 1....

*This can be breaking ohter areas not recommended...

 

*as adding unified_cgroup_hierarchy=0 to the kernel boot parameters only forces the system to use cgroup v1, not both versions simultaneously. Linux typically supports either cgroup v1 or cgroup v2, but running both at the same time requires special configurations or setups.

cgroup_no_v1=none keeps all cgroup v1 controllers active.

systemd.unified_cgroup_hierarchy=1 activates cgroup v2 if systemd is installed.

 

Just another reason to hate kernel 6...
in debain/Ubuntu kernel 5 with systemd...:

grub stuff:

cgroup_no_v1=none
systemd.unified_cgroup_hierarchy=1
 

anyway since unraid is slackware and mutable OS and not running systemd....

 

First verify cgroup:

cat /proc/cgroups
docker info | grep -i cgroup

uname -r
dmesg | grep cgroup

 


While this does exist but not recommend to use on unraid as other edits may be required to cmd line and docker to run both variants.


A docker extra parmerter...

--cgroup-parent=

 

Review:

https://medium.com/@asishrs/docker-limit-resource-utilization-using-cgroup-parent-72a646651f9d

https://github.com/moby/moby/issues/12849

 

So something like:
--cgroup-parent=/sys/fs/cgroup/my_custom_cgroup ...
*Untested...

?How to make one?

Create a Custom Cgroup

mkdir -p /sys/fs/cgroup/my_custom_cgroup

 

Assign memory or CPU limits if needed:

echo 512M > /sys/fs/cgroup/my_custom_cgroup/memory.limit_in_bytes
 

Extra parmerter: 

--cgroup-parent=/sys/fs/cgroup/my_custom_cgroup

 

test custom cgroup...

docker run --rm --cgroup-parent=/sys/fs/cgroup/my_custom_cgroup \
  -it ubuntu bash
 

^Highly not recommend unless you know what your doing...

 

what docker are you running that need cgroup 1?

22 hours ago, ms2003 said:

I have some docker only can run on cgroup v1

You can enable cgroup v1 by adding this to your syslinux.config:

unraidcgroup1
 

However if you do this you have to keep in mind that you have to rebuild you Docker containers, at least some of them (upgrading from v1 to v2 will not require this)

 

Can you please list such containers which only support cgroup v1?

I‘m not aware of containers that only using cgroup v1, I assume that recent containers are all compatible with cgroup v2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.