Cannot Claim Server On First Run
If you are starting the Plex container for the first time and cannot claim your server to set it up there are 3 methods you can try to resolve the issue:
1. Set the PLEX_CLAIM variable
docker stop plex docker rm plex # remove the config folder for plex # !WARNING! do NOT do this if you have already setup your plex server and are having issues connecting to it, skip to option 3 instead rm -Rf ~/.config/appdata/plex sudo nano ~/.docker/compose/.env # with the nano file editor open locate the PLEX_CLAIM variable # go to https://www.plex.tv/claim/ in your browser and get the claim token set your PLEX_CLAIM variable # the token expires in 5 minutes, so we'll want to get the rest done quickly # ctrl+x to save and exit nano ds -c
Then try again to claim the server by visiting
2. Host network mode
If the first method does not work, edit your
.env and set
ds -c and then attempt to claim your server. After claiming your server set
PLEX_NETWORK_MODE= (back to blank).
3. Claim helper script
If the first and second methods both have not worked this script should make it happen.
docker exec -it plex /bin/bash # download the script curl -L -o plex-claim-server.sh https://github.com/uglymagoo/plex-claim-server/raw/master/plex-claim-server.sh # make the script executable chmod +x plex-claim-server.sh # go to https://www.plex.tv/claim/ in your browser and get the claim token and replace PLEX_CLAIM with this token in the next command, please use use the double quotes around your claim token ./plex-claim-server.sh "PLEX_CLAIM" # fix permissions chown abc:abc "/config/Library/Application Support/Plex Media Server/Preferences.xml" # leave the container exit docker restart plex
How To Run Plex Pass Versions
~/.docker/compose/.env and set:
Rebuilding From Scratch
Thankfully, some of this information is well documented (but not easily found) over on Plex's website here!
- Moving an installation to another system: https://support.plex.tv/articles/201370363-move-an-install-to-another-system/
- Where is the Plex Media Server data directory? https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/
If you would like to have Plex use a GPU that is attached to your DockSTARTer host, you can do this using an override like so:
plex: devices: - /dev/dri:/dev/dri
Refer to this forum post for details: Using Hardware Acceleration in Docker