Open DrOptix opened 7 months ago
I was going to suggest that based on the cgroups lesson page, the course was last reviewed 5 years ago. But that shouldn't be a problem if we're all running within an ubuntu:bionic
container. I'm skipping these manual lessons and moving ahead to the pre-configured stuff.
It's a bit of both. From my research it seems to be something related to cgroups
vs cgroups v2
. I did not have time to fully wrap my head around it so I dropped this research.
Also you have to keep in mind that containers are not VMs, they use the underling host kernel. Because of this if the host kernel does not provide something or has a regression introduced, your container won't work.
I have a case like this at work where I have to stay on Kernel 6.6.x because after that a regression was introduced and because of that I could not launch Docker images of Microsoft SQL Server, mcr.microsoft.com/mssql/server:2019-latest
to be exact. Periodically I boot a newer kernel to see if they fixed, but no luck so far.
I'll keep this issue open. If @btholt decided to close it I'm fine with closing it.
This is indeed broken. I tried to fix it for v1 of this course but it was so different that I'm actually heading back to re-record it in May.
I just finished rewriting the section for v2 if you want to preview the next version of the course
https://containers-v2.holt.courses/lessons/crafting-containers-by-hand/cgroups
I created this script to automate the
cgroups
creation:It fails with:
I don't get why it's going mad. I'm using also an Ubuntu Bionic base image for my
chroot
.