Replies: 1 comment
-
Hi, We are able to sort this issue using cgroup-tools (cgcreate and cgexec). Required packages
Below steps are followed
Docker version
Docker Info
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We are trying to implement cgroup2 without systemd, we still have sysvinit on the system.
We are able to mount cgroup2 on /sys/fs/cgroup by adding below line in /etc/fstab
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
But in the output of the "docker info" command, we have observered the below WARNING message
**WARNING: No swap limit support**
Also Cgroup Version is set to 2.
Below is the complete output of the command
We tried below steps to move docker process to the cgroup2 manually
But still the same WARNING message is observed in output of the "docker info" command.
Is systemd mandatory for docker process?
As per https://github.com/opencontainers/runc/blob/main/docs/cgroup-v2.md,
On cgroup v2 hosts, it is highly recommended to run runc with the systemd cgroup driver (runc --systemd-cgroup), though not mandatory.
As per above comment, it appears that systemd is not mandatory and can be run with sysvinit.
Please provide steps to make it compatible with sysvinit.
Environment:
Beta Was this translation helpful? Give feedback.
All reactions