How to Install Library Doctor on a Synology NAS (Container Manager, DSM 7.2)
Install Library Doctor on a Synology NAS with Container Manager: the two permission and folder steps that stop most installs, then the project and your first scan.
- Time
- About 15 minutes
- Reading
- 8 min
- Updated
- 4 December 2026
- By
- spikey1965
- Tested with
- Library Doctor 0.4.0 (install steps first tested with 0.3.3 on DSM 7.2)

Follow this guide at your own risk, and back up your data first. Full disclaimer
Library Doctor checks your Plex, Jellyfin or Emby library every night for missing files, duplicates, broken or wrong-language copies and stuck downloads, with a button to fix most of them. It runs happily on a Synology NAS in Container Manager, Synology’s version of Docker.
Synology has two habits that stop most first installs: its Docker won’t create missing folders, and being an administrator isn’t enough inside a container. This guide does the steps in the right order so neither catches you out. It takes about 15 minutes on DSM 7.2.
Library Doctor on Synology: quick answer
To run Library Doctor on a Synology NAS, make its folders first (Synology’s Docker won’t create missing ones), then add it as a project in Container Manager with the compose file from this guide and open port 8790. It takes about 15 minutes on DSM 7.
| Before you start | A Synology NAS on DSM 7.2 that runs Container Manager, an administrator login, Plex, Jellyfin or Emby, and a shared folder with your films and shows. Radarr and Sonarr are recommended. |
|---|---|
| Docker image | ghcr.io/spikey1965/library-doctor:latest |
| Time | About 15 minutes |
| Tested with | DSM 7 |
Watch: install Library Doctor on a Synology NAS
The video has subtitles and quiet background music. It was recorded on a test setup running DSM 7.2.
What you need
- A Synology NAS on DSM 7.2 that can run Container Manager (most Plus and newer models).
- An administrator login to DSM.
- Plex, Jellyfin or Emby, on the NAS or elsewhere, and Radarr and Sonarr if you use them (recommended).
- A shared folder with your films and shows, for example
media.
1Install Container Manager
Open Package Center, search for Container Manager and click Install. Keep the default settings. It also creates a shared folder called docker, which is where Library Doctor’s settings will live.

2Give your user Read/Write on the shares
This is the step that stops most installs. In Control Panel → Shared Folder, select docker, click Edit and open the Permissions tab. Tick Read/Write for your own user and press Save.

Do the same for the share with your films and shows (for example media).
Why, if you’re already an administrator? The Preview column says Read/Write, but that comes from the administrators group. Inside a container your user is only in the users group, so without its own tick Library Doctor can’t save its settings or move files into its trash.
3Make the folders
Synology’s Docker doesn’t create missing folders for containers; it stops with Bind mount failed: … does not exist instead. So make them first. Open File Station, go into docker, create a folder called library-doctor, open it, and inside it create a folder called config.

4Find your user and group IDs
Library Doctor runs as your user, so it needs your user ID (PUID) and group ID (PGID). On Synology, the first user you made is usually 1026, the next 1027, and so on, and the users group is 100.
To be sure, switch on SSH in Control Panel → Terminal & SNMP, connect, and run id. It prints something like uid=1026(yourname) gid=100(users). You can switch SSH off again afterwards.
5Create the project in Container Manager
Open Container Manager, go to Project and press Create:
- Project name:
library-doctor - Path: the
docker/library-doctorfolder you made - Source: Create docker-compose.yml, then paste this, with your own PUID, PGID, time zone and media share:
services:
library-doctor:
image: ghcr.io/spikey1965/library-doctor:latest
container_name: library-doctor
restart: unless-stopped
ports:
- "8790:8790"
environment:
- PUID=1026 # CHANGE: your user ID (Step 4)
- PGID=100 # the users group
- TZ=Europe/London # CHANGE: your time zone
volumes:
- ./config:/config
- /volume1/media:/media # CHANGE: your films and shows share
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true

Press Next, skip the web portal settings, then Done. Container Manager downloads Library Doctor and starts it. When the log ends with Container library-doctor Started and Exit Code: 0, it’s running.

6Open it, make a password and add your apps
Open http://YOUR-NAS-IP:8790 and create a password straight away. Then, in Settings, pick Plex, Jellyfin or Emby, add Radarr and Sonarr, press Test all apps, check Folder check and press Save settings, then Scan now. Got more than one media server? Add the others under More media servers. These steps are the same on every system, with screenshots, in Steps 3 to 5 of the Docker Compose guide.
If Plex runs on the same Synology, use the NAS’s IP address for it (for example http://192.168.1.20:32400), not localhost.
New in v0.4.5 ✓ (4 December)
- Clean-ups no longer leave an empty folder behind (Put Back makes it again)
- With Jellyfin or Emby, the log names your media server instead of “Plex”
New in v0.4.4 ✓ (4 December)
- Get the app: a new button at the top puts Library Doctor on your phone or computer, full screen with its own icon. How to put it on your phone
- Fixed: cards you fixed while a scan was running no longer come back as “problems keep coming back”
- Phones with several media servers show the Library Doctor icon in the top bar instead of a cut-off name
New in v0.4.1 ✓ (2 December)
- Much faster scans: the virus and fake file check only opens videos that are new or changed since they were last found clean, so a nightly scan takes a minute or two instead of several. The first scan after updating still checks them all
- That check counts up while it runs (“3,000 of 14,720”) instead of sitting still on the progress bar
- “To look at” counts on the scan list and Analysis no longer include cards you’ve ignored
- The page opens on a tile with work to do (missing files first, then damaged files and viruses)
New in v0.4.0 ✓ (28 November)
- Several media servers at once: add a second (or third) Plex, Jellyfin or Emby under Settings → More media servers. Each gets its own cards, scan history, trash and health score, and All servers shows them side by side (asked for on GitHub)
- An Ignore now counts on every server
- Learns what you ignore: after 3 Ignores of the same kind in one library, it offers to hide cards like those. Nothing is hidden unless you say yes
- Phone layout: the tabs sit along the bottom on a phone, and you can add Library Doctor to your home screen
- Quality fallback: when Replace finds nothing in your preferred quality, it can try a lower one as a last resort (set for each Radarr/Sonarr)
- Turn it off now works for indexers that come from Prowlarr
- Jellyfin and Emby: widescreen films are measured properly, and blank posters get Use the show’s poster and Copy poster from Plex
Fixes in v0.4.0
- Replace keeps the film or episode monitored, so Radarr/Sonarr keep looking, and the button says “Replacing…” so it isn’t pressed twice
- Refresh Plex on “Plex lists a file that isn’t on the disk” cards
- Safer Plex backups, and no more “keeps failing” card once an indexer works again
If something’s wrong
- “Bind mount failed: … does not exist”. The
configfolder isn’t there, or the path in the project points somewhere else. Make the folders in Step 3, then build the project again. - “Can’t save settings” or a message about permissions. Your user doesn’t have its own Read/Write tick on
docker(Step 2), or PUID/PGID don’t match your user. Library Doctor shows a message saying exactly what to change. - Clean-up buttons don’t work on your films. Your user needs Read/Write on the media share too (Step 2).
- Your disks keep waking up. The scan never reads your video files, but it does check they exist, which can wake sleeping disks. Under Settings → General → Automatic scan, pick fewer days (once a week is fine).
- Every file shows as missing. Plex or Radarr sees your media under a different folder (for example
/data/movies). Use the suggested mapping in Settings → Folder check.
Keep port 8790 on your home network: don’t forward it on your router.
Updating Library Doctor on Synology
Your password and settings live in docker/library-doctor/config, so they’re kept when you update. In Container Manager, open Project, select library-doctor, press Stop, then Action → Build: it downloads the newest image and starts it again. What’s new in each version is in the changelog on GitHub.
Frequently asked questions
Does Library Doctor work on Synology?
Yes. It runs in Container Manager on DSM 7.2. Give your user its own Read/Write permission on the docker and media shares, and create the config folder first, and it installs like any other container.
What PUID and PGID do I use on Synology?
The first user you created is usually 1026 (the next 1027, and so on) and the users group is 100. Run id over SSH to be sure.
Why can't Library Doctor save its settings on my Synology?
Being an administrator isn't enough inside a container. Tick Read/Write for your own user on the docker share in Control Panel, Shared Folder, Permissions.
Will Library Doctor keep my Synology disks awake?
The scan never reads your video files, but checking that they exist can wake sleeping disks. Pick fewer scan days, such as once a week, under Settings, General, Automatic scan.
Is Library Doctor free?
Yes. It's free and open source (MIT), and it runs on your own NAS.
Thank you
Library Doctor is free and open source (MIT) at github.com/spikey1965/library-doctor. It’s been tested on DSM 7.2 in a test setup; if you run it on a real Synology, an issue saying how it went (good or bad) really helps. Synology, DSM and Container Manager are trademarks of Synology Inc. This site isn’t connected to Synology.
Questions or stuck? Ask in the Library Doctor Discord: setup help, ideas for new checks, and every new version posted the moment it’s out.
Related guides: Library Doctor: how it was built and tested · Library Doctor with Docker Compose · Gotify
Using it? Leave a review, it really helps.

Get new guides by email
About one email a month: new guides and card releases. No spam, unsubscribe any time.



Comments
No comments yet. Questions and tips are welcome.