add cgroup v2 support #71

Closed
Krishnacore wants to merge 1 commit from cgroup-v2-support into main
Krishnacore commented 2024-03-05 16:39:15 +00:00 (Migrated from github.com)
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
  • Tested changes against a test repository
  • Added or updated relevant documentation (leave unchecked if not applicable)
  • (If this PR is for a release) Updated README to point to the new tag (leave unchecked if not applicable)
##### Description <!--- Please include a short description of what your PR does and / or the motivation behind it ---> 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 - [ ] Tested changes against a test repository - [ ] Added or updated relevant documentation (leave unchecked if not applicable) - [ ] (If this PR is for a release) Updated README to point to the new tag (leave unchecked if not applicable)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix-install-action#71
No description provided.