diff --git a/images/docker-plex/index.html b/images/docker-plex/index.html index 79d35062bd..949b5da49a 100644 --- a/images/docker-plex/index.html +++ b/images/docker-plex/index.html @@ -33,14 +33,13 @@
Docker images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal>
respectively. For example, -p 8080:80
would expose port 80
from inside the container to be accessible from the host's IP on port 8080
outside the container.
-p
)¶Parameter | Function |
---|---|
--net
)¶Parameter | Function |
---|---|
--net=host | Use Host Networking |
-e
)¶Env | Function |
---|---|
PUID=1000 | for UserID - see below for explanation |
PGID=1000 | for GroupID - see below for explanation |
TZ=Etc/UTC | specify a timezone to use, see this list. |
VERSION=docker | Set whether to update plex or not - see Application Setup section. |
PLEX_CLAIM= | Optionally you can obtain a claim token from https://plex.tv/claim and input here. Keep in mind that the claim tokens expire within 4 minutes. |
-v
)¶Volume | Function |
---|---|
/config | Plex library location. This can grow very large, 50gb+ is likely for a large collection. |
/tv | Media goes here. Add as many as needed e.g. /movies , /tv , etc. |
/movies | Media goes here. Add as many as needed e.g. /movies , /tv , etc. |
Parameter | Function |
---|---|
You can set any environment variable from a file by using a special prepend FILE__
.
As an example:
Will set the environment variable PASSWORD
based on the contents of the /run/secrets/mysecretpassword
file.
For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022
setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up here before asking for support.
If you want to run the container in bridge network mode (instead of the recommended host network mode) you will need to specify ports. The official documentation for ports lists 32400 as the only required port. The rest of the ports are optionally used for specific purposes listed in the documentation. If you have not already claimed your server (first time setup) you need to set PLEX_CLAIM
to claim a server set up with bridge networking.
-p 32400:32400 \
-p 1900:1900/udp \
- -p 3005:3005 \
- -p 5353:5353/udp \
- -p 8324:8324 \
- -p 32410:32410/udp \
- -p 32412:32412/udp \
- -p 32413:32413/udp \
- -p 32414:32414/udp \
- -p 32469:32469
+ -p 5353:5353/udp \
+ -p 8324:8324 \
+ -p 32410:32410/udp \
+ -p 32412:32412/udp \
+ -p 32413:32413/udp \
+ -p 32414:32414/udp \
+ -p 32469:32469
The application accepts a series of environment variables to further customize itself on boot:
Parameter | Function |
---|---|
--device=/dev/dri:/dev/dri | Add this option to your run command if you plan on using Quicksync hardware acceleration - see Application Setup section. |
--device=/dev/dvb:/dev/dvb | Add this option to your run command if you plan on using dvb devices. |
When using volumes (-v
flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID
and group PGID
.
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
In this instance PUID=1000
and PGID=1000
, to find yours use id user
as below:
We publish various Docker Mods to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.
docker exec -it plex /bin/bash
docker logs -f plex
docker inspect -f '{{ index .Config.Labels "build_version" }}' plex
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/plex:latest
UMASK_SET
in favor of UMASK in baseimage, see above for more information./transcode
volume mapping as it is now set via plex gui and defaults to a location under /config
.VERSION=public
./transcode
volume support (upstream Plex change) and modified PlexPass download method to prevent unauthorised usage of paid PMS