earthly: Some DIND scenarios fail when using cgroups v2
Notable, podman and kind have been documented to fail on systems using cgroups v2. Here is all the relevant information:
- Docker updated to use cgroups v2 in Docker Desktop at version 4.3.0. I do not know what docker CLI version this correlates to
- Our unit tests that use
podmanappear to be trying to use cgroups v1. We may need to updatepodmanfor these unit tests sincedockeris on v2 (andpodmanis inside docker here, for our unit tests), or add compatibility flags - To turn off/on cgroups v2, I use the following kernel param:
systemd.unified_cgroup_hierarchy=0(Pop!_OS 21.10) - v2 is a unified, single-root hierarchy; vs the v1 multi-root approach
- You can examine currently running cgroups via
systemd-cgtop kindalso does not run when using v2, inside aWITH DOCKER. I haven’t dug too much into regulardocker, but I assume its only partially functional in this case- You can check what cgroups versions you have by
grep cgroup /proc/filesystems
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 24
KIND support (and systemd-based images) now work with cgroups v2 under earthly v0.6.11
#1703 fixes the KIND-in-WITH DOCKER issue.