Skip to content

Support cgroups v2 with garden #9063

Closed

Description

@mariash

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 -

{
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions