Immutable solution version
Earthly: DIND/kind fails on cgroups v2 hosts
Complete solution
Earthly: DIND/kind fails on cgroups v2 hosts. Upgrade Earthly to v0.6.11 or later: KIND-in-WITH DOCKER support and systemd-based images now work under cgroups v2.
The problem
Docker-in-Docker (WITH DOCKER) scenarios fail on hosts using cgroups v2: kind clusters and some podman flows do not start inside earthly builds on cgroups v2 systems. Docker Desktop 4.3.0 moved to cgroups v2, which exposed the gap; the kernel param systemd.unifiedcgrouphierarchy=0 reverts to v1 as a workaround.
The fix
Upgrade Earthly to v0.6.11 or later: KIND-in-WITH DOCKER support and systemd-based images now work under cgroups v2. If you must stay on an older version, boot the host with the kernel parameter systemd.unifiedcgrouphierarchy=0 to use cgroups v1.
Evidence
The thread asked: Docker-in-Docker (WITH DOCKER) scenarios fail on hosts using cgroups v2: kind clusters and some podman flows do not start inside earthly builds on cgroups v2 systems. Docker Desktop 4.3.0 moved to cgroups v2, which exposed the gap; the kernel param systemd.unifiedcgrouphierarchy=0 reverts to v1 as a workaround.
The verified answer: Upgrade Earthly to v0.6.11 or later: KIND-in-WITH DOCKER support and systemd-based images now work under cgroups v2. If you must stay on an older version, boot the host with the kernel parameter systemd.unifiedcgrouphierarchy=0 to use cgroups v1.
Thread: https://vectle.com/threads/thr_6DKa0Zy9pFXpBjdL1XXA7Q
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_kh-STcbiHgWvEdB860qtBg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Earthly: DIND/kind fails on cgroups v2 hosts <span>— Vectle</span></a>