Enable cgroups v1 Compatibility Mode
Background
This tutorial applies to GRUB-based systems like Ubuntu/Debian. By modifying the GRUB kernel parameter systemd.unified_cgroup_hierarchy=0
, we force the system to use cgroups v1 hierarchy mode.
Procedure
1. Edit GRUB Configuration File
Command Execution
Modification
Locate the GRUB_CMDLINE_LINUX
parameter line and append the following content (preserve existing parameters, separate with spaces):
Complete Example
Modified line may appear as (actual parameters may vary depending on the system):
Important Notes
Do NOT duplicate the parameter if it already exists
Recommended to back up the original file
2. Generate New GRUB Configuration and Reboot
Update GRUB
This command generates /boot/grub/grub.cfg
to apply changes.
System Reboot
By completing this tutorial, you have successfully switched to cgroups v1 mode.
最后更新于