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'),
Problem Statement
The label
io.balena.features.sysfsmounts the host/systo the container at/sys, but it doesn't mount/sys/fs/cgroupbecause it is a separate file system. As a result, we are unable to usesystemdinside 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: