Starting a systemd service before Docker?

  • Hello,

    I am running LibreElec 10RC1 on a Raspberry pi 4 (2GB) and I am facing an issue that I guess may have a simple solution, but I am unable to find it.

    Aside from LibreElec, I am running a couple of docker containers, Jellyfin for videos and Komga for comic books. Both of them use an encrypted google drive for their libraries which is mounted by rclone using a systemd service every time the pi is powered. Yet it seems Docker and its containers are started before the mount, because in order to find the files, I always need to restart them once. After that, everything works as expected.

    So is there any way to add a delay for Docker to avoid this extra step or some similar solution?

    Docker and Portainer were installed through the LibreElec addons. For Jellyfin and Komga I used Portainer in case it is relevant.