Skip to content

jaymoulin/docker-plex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caution

As-of 2021, this product does not have a free support team anymore. If you want this product to be maintained, please support my work.

Note

(This product is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many desirable features yet to be added.)

Tip

THIS REPOSITORY IS AUTO-UPDATED BY A BOT EACH TIME A NEW PLEX SERVER VERSION IS RELEASED

logo

Plex Media Server - Docker Image (Multiarch + Raspberry Pi)

latest release Docker Pulls Docker stars Docker Pulls Docker stars PayPal donation Buy me a coffee Buy me a coffee

This image allows you to configure a Plex Media Server easily thanks to Docker.

Installation

First, you have to mount your USB drive.

sudo mount /dev/sda1 /mnt/usbdrive

Tip

Important Note

Don't forget to mount the Plex Library directory local folder to /root/Library folder.

Example :

docker run -d --restart=always --name plex -v /mnt/usbdrive:/media --net=host -v /mnt/usbdrive:/root/Library jaymoulin/plex

This will start Plex using your mounted drive in /media path in Plex (library volume not mounted will result in a container only library - this will be harder to fix).

docker run -d --restart=always --name plex -v /mnt/usbdrive:/media --net=host jaymoulin/plex

Configuration

Go to http://your_machine_ip:32400/manage to configure it

Appendixes

Install Docker

If you don't have Docker installed yet, you can do it easily in one line using this command

curl -sSL "https://gist.githubusercontent.com/jaymoulin/e749a189511cd965f45919f2f99e45f3/raw/0e650b38fde684c4ac534b254099d6d5543375f1/ARM%2520(Raspberry%2520PI)%2520Docker%2520Install" | sudo sh && sudo usermod -aG docker $USER

Repairing Database

Tip

As-of 1.1.0 (Plex 1.40.0) This image brings ChuckPa/PlexDBRepair tool to help fixing errors on Plex databases. If some error occurs and database is corrupted, you would be able to check/repair using this tool.

To use it, the plex service should be STOPPED. Then you can use the command DBRepair in the docker container with your Library volume mounted.

Docker CLI example

docker run --rm -v /mnt/usbdrive:/media -v /mnt/usbdrive:/root/Library jaymoulin/plex DBRepair

Docker Compose Example

docker compose stop plex
docker compose run plex DBRepair

Can't match correctly a movie

After trying "Fix association", if you still can't find the correct movie, you can seek for the correct movie on tmdb.org and enter its ID preceded by tmdb- in the title field. For example, my movie Selfie was not correctly associated. Found it on https://www.themoviedb.org/movie/613319-selfie so I seeked for tmdb-613319 to fix it.

Known issues

libstdc++.so.6: cannot open shared object file

You will probably notice that kind of error log:

/usr/lib/plexmediaserver/Plex Tuner Service: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
/usr/lib/plexmediaserver/Plex Tuner Service: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
/usr/lib/plexmediaserver/Plex Tuner Service: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

This is a known issue for Plex Tune Service ONLY. This service is not required by Plex Media Server to work properly. I have no intention to fix this log. If you REALLY NEED Plex Tuner Service to work, please open an issue, or (better desired option), make a Pull Request to implement this feature.

Unknown file formats / "This server is not powerful enough to convert video"

Plex for Raspberry PI cannot read some video file format like AVI, WMV or OGM, either due to codec or due to RPI lack of power. You can convert them to make them compatible by using my docker image jaymoulin/rpi-plex-video-converter : https://github.com/jaymoulin/docker-rpi-plex-video-converter