Hi guys,
Just installed sonarr in docker on an x86 libreelec install on a chromebox.
Here's the service file contents:
[Unit]
Description=%p container
Requires=service.system.docker.service
After=service.system.docker.service
[Service]
Restart=always
RestartSec=10s
TimeoutStartSec=0
ExecStartPre=-/bin/sh -c "mkdir -p /storage/%p/config /storage/%p/tv /storage/&p/downloads"
ExecStart=/storage/.kodi/addons/service.system.docker/bin/docker run \
--rm \
--name=%p \
--hostname=libreelec-%p \
-v /storage/%p/config:/config \
-v /storage/%p/tv:/tv \
-v /storage/%p/downloads:/downloads \
-p 8989:8989 \
-v /dev/rtc:/dev/rtc:ro \
linuxserver/sonarr
ExecStop=/storage/.kodi/addons/service.system.docker/bin/docker stop %p
[Install]
WantedBy=multi-user.target
Display More
Save this file on the sd card with the file name sonarr.service in any folder (ie downloads through samba or /storage/downloads through ssh)
then ssh into le, and type the following:
systemctl enable /storage/downloads/sonarr.service
after that you can either reboot or start it manually with systemctl start sonarr
in a web browser, navigate to ipaddress:8989 and voila
on arm like raspberry pi, just change the one line in the service file from "linuxserver/sonarr" to "lsioarmhf/sonarr"
PS. The first time you run this, it may take a few minutes (especially on the pi) because it will need to download the images from docker and uncompress them before the container runs