I've deleted my old comment because I messed up the output of the container.
Here are the outputs of your test script. Output of the host:
hostsystem ~ # bash /tmp/test.sh
cgroupsv1
Output of the container:
container ~ $ bash /tmp/test.sh
hybrid
So, there is a mismatch of the cgroups versions. What does that mean?
I've attached the output of the `journalctl -t systemd -b 0`. Do you need an additional output after I've executed the command `systemctl daemon-reexec`?
Note: Executing the test scripts on a working(!) container with Ubuntu 20.04 and systemd 245.4-4ubuntu3.20 outputs the following:
@enr0n: Thanks for your help.
I've deleted my old comment because I messed up the output of the container.
Here are the outputs of your test script. Output of the host:
hostsystem ~ # bash /tmp/test.sh
cgroupsv1
Output of the container:
container ~ $ bash /tmp/test.sh
hybrid
So, there is a mismatch of the cgroups versions. What does that mean?
I've attached the output of the `journalctl -t systemd -b 0`. Do you need an additional output after I've executed the command `systemctl daemon-reexec`?
Note: Executing the test scripts on a working(!) container with Ubuntu 20.04 and systemd 245.4-4ubuntu3.20 outputs the following:
hostsystem: cgroupsv1
container: hybrid