I have trawled the internet and these forums but am unfortunately still stuck with a problem concerning systemd inside of a container running on balenaOS.
My environment:
HOST OS: balenaOS 2.31.5+rev1
Supervisor: 9.11.3
Raspberry Pi3.
The opening lines of my Dockerfile…
FROM balenalib/%%RESIN_MACHINE_NAME%%-debian:jessie
ENV INITSYSTEM on
My docker-compose.yml file for this single container.
When trying to run any service related type commands using systemd I get the following error:
Failed to get D-Bus connection: Unknown error -1
I have specified ENV INITSYSTEM on in my Dockerfile.
I have added the Device Service Variable INITSYSTEM on through the dashboard as well but I cannot get systemd to run?
Sure thing! In our experience almost everything can be done without systemd in the container and setting different parts of the application up nicely in their own containers/services to decouple them from each other. Depending on what you are doing (ie. what’s your application), that might worth looking at as well!
Morning! Yes I would like to embrace the improvements that can be found by decoupling everything and running each application/“service” in its own container. I will create a new topic in the forum asking for any advice as to best practise so as to accomplish this!