I would like to use this docker image https://github.com/eniocarboni/docker-rockylinux-systemd and build upon it to use in a docker-compose with multiple containers.
Can anyone explain how to include the following:
volume=/sys/fs/cgroup:/sys/fs/cgroup:rw
in the docker-compose file?
I have tried this but it doesnt work:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
And gives the following error: Couldn't find an alternative telinit implementation to spawn.
Which according to the answer here seems to be down to the volume.
I can run the rocky linux image with the instructions:
docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:rw --cgroupns=host eniocarboni/docker-rockylinux-systemd:latest
fine - just cant get it to work with compose and an entry-point.