Skip to content

Add CGroup Bind Mount Support #2425

Open
@ideonrandy

Description

@ideonrandy

Problem Statement

The label io.balena.features.sysfs mounts the host /sys to the container at /sys, but it doesn't mount /sys/fs/cgroup because it is a separate file system. As a result, we are unable to use systemd inside Docker containers when using the standard Balena deployment scheme (e.g. Balena push).

Possible Solution

In balena-supervisor/src/compose/utils.ts, add the following line to support this bind mount:

'io.balena.features.cgroupfs': () => service.config.volumes.push('/sys/fs/cgroup:/sys/fs/cgroup'),

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