I have used the following to create the Plex docker image (for this config you have to be a plexpass member):
docker run
-d
–name plex
–network=host
-e TZ=“Europe/Amsterdam”
-e PLEX_CLAIM="yourplexclaim-code”
-e PLEX_UID=“userid”
-e PLEX_GID=“groupid”
-e PLEX_PASS=yes
-e UMASK=002
-e DEBUG=no
-v /etc/localtime:/etc/localtime:ro
-v /volume1/docker/plex:/config
-v /volume1/docker/plex:/transcode
-v /volume1/Media:/data
–device=/dev/dri:/dev/dri
plexinc/pms-docker:plexpass
You have to look up the UID and GID of the user which has rights on your Media folder and the docker-plex-config folder. And offcourse change the folder mapping to your own folders.
The “–device=/dev/dri:/dev/dri” parameter gives you HW acceleration. Without that line 4k HDR 40Mbit is non watchable if it needed transcoding on my 920+. With the line in place it doesn’t even breaks a sweat.