Plex Media Server, in a container
Clone the repo and build it
$ git clone git@github.com:arbourd/docker-plex.git
$ docker build -t plex .
Or pull from Docker Hub
$ docker pull arbourd/plex
$ docker run --name=plex -d -p 32400:32400 -v <config>:/plex -v <media path>:/audiovisual arbourd/plex
To gain access to <ip>:32400/web
(the server) from outside the host machine locally:
- Open
Preferences.xml
in your favourite editor
$ vim <config>/Library/Application Support/Plex Media Server/Preferences.xml
- Add
allowedNetworks="192.168.1.0/16"
or whatever your local range / subnet are toPreferences.xml
Running docker run
with --net="host"
will open up the entire hosts network stack to the container allowing avahi
to broadcast locally.
This is necessary if you want to access Plex locally without signing in with a Plex account.
This seems to be a docker-machine
issue. No fix at this time.
- Smaller footprint
- Uses PPA to download / install Plex Media Server
init.sh
matches host and client GIDs- Runs Plex Media Server as
plex
user, notroot
Public Domain