This is an old revision of the document!
I installed Docker after Synology discontinued support for the Logitech Media Server (LMS). Synology supports Docker on Intel based NAS only, so you cannot resort to this solution on DS212+ and DS213+. To continue to use LMS on those platforms you must not upgrade to DSM7, and you must not upgrade Perl v5.24 to a newer version. If you do, the Logitech Media Server package will not start anymore. Remember to disable auto-update for the Perl package.
The following guide explains how to install Docker and the latest Synology Media Server.
sudo docker run \ --name logitech-media-server \ --restart=unless-stopped \ --net=host \ -v "/volume1/docker/lms":"/config":rw \ -v "/volume1/media/music/flac":"/music":rw \ -v "/volume1/media/music/Playlists":"/playlist":rw \ -v "/etc/localtime":"/etc/localtime":ro \ -e TZ=Asia/Bangkok \ -e HTTP_PORT=9002 \ -e PGID=100 \ -e PUID=1026 \ lmscommunity/logitechmediaserver:[latest|stable]
Note that you must set all volumes initially to Read/Write permissions. Use HTTP_PORT=9002 to make the server run on the same port as the previous app, and to avoid conflicts with other apps on your NAS. PGID=100 means users and is the same for every DSM, but PUID=1026 must reflect your user ID which is used to save your music files on the NAS. Open /etc/passwd from the CLI and find the entry for your user name, which contains the user ID, the group ID, and the default shell run when opening a CLI, e.g.
user:x:1026:100::/var/services/homes/user:/bin/sh
Depending on your docker image download uses “latest” or “stable” without the square brackets.
sudo docker exec -t -i logitech-media-server chmod -R u+rws,g+rws /music chmod -R u+rws,g+rws /playlist exit
New media folders and files created after the container is setup will inherit permissions from the parent folders automatically.
To get the user experience even closer to the original LSM app you can manually install a small package which shows in DSM with the original LSM icon and opens LSM on click. I made the Logitech Media Server URL Package with the help of Valery Letroye's excellent Mods Packager.
sudo docker exec -t -i logitech-media-server /bin/bash