[ updated 10-30-2016 | Upgraded Plex to plexmediaserver-188.8.131.5257-24ffd60.x86_64.rpm and CentOS ]
Recently I tried setting up a Plex server in a docker container. The first problem was the 127.0.0.1:32400 bind which required logging in locally or port forwarding. After doing this once, I realized that you could use the Preferences.xml file, but that meant that you couldn’t truly automate this/deploy it elegantly in a docker container. And what if you wanted to run other servers — for friends? I finally figured out how to do this in the most elegant way possible.
First – Grab your Unique Plex Access Token
Login at https://app.plex.tv/web/app with your username and password
Note the token, which will look like this: “PZwoXix8vxhQJyrdqAbY”
At this stage DO NOT click log out of your account until you register the new server. Otherwise your token will regenerate.
Once you register the server, it won’t matter after that if the token changes.
Grab my Docker Image
Check out: https://hub.docker.com/r/ventz/plex/
You can pull it down by doing:
docker pull ventz/plex