-
-
Notifications
You must be signed in to change notification settings - Fork 866
Closed
Description
Summary
Garden supports cgroups v2 since v1.67.0
Running concourse with latest garden on OS with cgroups v2 enabled is currently failing with the error:
find or create container on worker 2455f5fd-2b9c-4747-8cf8-b096d48539a1: runc run: exit status 1: runc run failed: unable to start container process: error during container init: error mounting "cgroup" to rootfs at "/sys/fs/cgroup": mount /sys/fs/cgroup:/sys/fs/cgroup (via /proc/self/fd/12), flags: 0x100f: invalid argument
The error is coming from the mount option -
concourse/worker/runtime/spec/mounts.go
Lines 45 to 50 in edeafee
{ | |
Destination: "/sys/fs/cgroup", | |
Type: "cgroup", | |
Source: "cgroup", | |
Options: []string{"ro", "nosuid", "noexec", "nodev"}, | |
}, |
For cgroups v2 the type of the mount should be cgroup2
.
taylorsilva, AdamGreenlee and analytically
Metadata
Metadata
Assignees
Labels
No labels