[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/watch /storage/%p/downloads /storage/%p/incomplete /storage/%p/config" ExecStart=/storage/.kodi/addons/service.system.docker/bin/docker run \ --rm \ --name=%p \ --hostname=libreelec-%p \ --volume=/storage/%p/watch:/watch \ --volume=/storage/%p/downloads:/downloads \ --volume=/storage/%p/incomplete:/incomplete \ --volume=/storage/%p/config:/config \ --publish=9091:9091 \ timhaak/%p ExecStop=/storage/.kodi/addons/service.system.docker/bin/docker stop %p [Install] WantedBy=multi-user.target