Jellyfin is the open source version of Emby.
wget -nv -O- https://get.docker.com/ | sh
Inspired by https://hub.docker.com/r/jellyfin/jellyfin
docker run -d --restart=unless-stopped --name=jellyfin -p 8096:8096 -v /host/config:/config -v /host/media:/media jellyfin/jellyfin
Inspired by: https://stackoverflow.com/a/39493500
Create systemd service file:
vim /etc/systemd/docker-jellyfin.service
Contents of systemd service file:
[Unit]
Description=Jellyfin docker container
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStart=/usr/bin/docker start -a jellyfin
ExecStop=/usr/bin/docker stop -t 2 jellyfin
[Install]
WantedBy=default.target
Finally, enable the service:
systemctl enable /etc/systemd/docker-jellyfin.service