Using the Official Plex docker container as a base, with remote transcoding support provided by Plex Remote Transcoder we pair the two together using Docker.
The Official Plex docker image is the basis for both the master and slave, so their documentation also applies to these containers. Given that, I won't repeat that information here.
docker run \
-d \
--name PLEX-master \
--restart=always \
--net=host \
-e TZ="Europe/Paris" \
-e MASTER_IP="MASTERIP" \
-e SLAVE_IP="SLAVEIP" \
-e SLAVE_PORT="8022" \
-e PLEX_UID="797" \
-e PLEX_GID="797" \
-v /plex/:/config \
-v /plextmp:/transcode \
-v /tmp:/tmp \
-v /storage/download:/media \
phd59fr/prt:master
docker run \
-d \
--name PLEX-slave \
--restart=always \
--net=host \
-e TZ="Europe/Paris" \
-e MASTER_IP="MASTERIP" \
-e SLAVE_IP="SLAVEIP" \
-e SLAVE_PORT="8022" \
-e PLEX_UID="797" \
-e PLEX_GID="797" \
-v /plex/:/config \
-v /plextmp/:/transcode \
-v /tmp:/tmp \
-v /storage/download:/media \
phd59fr/prt:slave
PLEX_UID and PLEX_GID as this can affect the slaves ability to transcode.-e MASTER_IP="<hostIPAddress>" this is the externally visible ip address (or hostname) for the Plex master.-e SLAVE_IP="<slaveIPAddress>" this is the IP address (or hostname) of the Plex slave.-e SLAVE_PORT="<slavePort>" this is the SSH port of the Plex slave (default = 22).-e SLAVE_USER="<slaveUser>" this is the SSH user of the Plex slave (default = plex).if your want change ssh port you can use this command:
Getting up and running is very similar to the official image. If the slave is off, unreachable or not configured, the master server will function exactly as the official Plex Media Server container. This means that you can start-up, or shut-down the slave(s) as needed.
When you start up the master for the first time, it will add the slave as per the given parameters.
The .prt.conf will be available in the mounted /config directory so you can change it from your
host if need be.
At this stage you need to go into the master container and ssh to the slave. The reasons for which are outlined vaguely here.
# connect to an interactive terminal in the master container
docker exec -ti plex bash
# ssh to the slave so that we can type "yes" and populate `known_hosts`
ssh <slaveUser>@<slaveIPAddress> -p <slavePort>
If all goes well (and you typed "yes") you should be connected to the slave via ssh.
Content type
Image
Digest
Size
219.6 MB
Last updated
almost 9 years ago
docker pull phd59fr/prt:slave