DeterminateSystems / nix-installer-action

The Github Action for the Determinate Nix Installer
https://github.com/determinateSystems/nix-installer
GNU Lesser General Public License v2.1
158 stars 16 forks source link

add cgroup v2 support #71

Closed Krishnacore closed 6 months ago

Krishnacore commented 6 months ago
Description

At the moment, the action does not work when launching the container on a system with cgroup v2. cat /proc/self/cgroup inside a container with mounted socket on host with cgroup v1:

0::/docker/a796003601f83ca28aa4139aa099cf3b2993d0ec6aa492be4018c58d60afc905

The same with cgroup v2 (The container must be launched with --cgroupns host):

0::/system.slice/docker-0697bf0ca3821b4f65e29f8f80fa7724f80614cae3f325d8ecc4770ed9116a74.scope

This way we will handle both cases

Checklist