Skip to content

Commit 3ac14ff

Browse files
authored
Merge pull request #227 from linuxserver/ports
EXPOSE all documented ports
2 parents 105474e + 7fd3743 commit 3ac14ff

File tree

5 files changed

+31
-13
lines changed

5 files changed

+31
-13
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ RUN \
5252
COPY root/ /
5353

5454
# ports and volumes
55-
EXPOSE 32400/tcp 3005/tcp 8324/tcp 32469/tcp 1900/udp 32410/udp 32412/udp 32413/udp 32414/udp
55+
EXPOSE 32400/tcp 1900/udp 3005/tcp 5353/udp 8324/tcp 32410/udp 32412/udp 32413/udp 32414/udp 32469/tcp
5656
VOLUME /config

Dockerfile.aarch64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ RUN \
4949
COPY root/ /
5050

5151
# ports and volumes
52-
EXPOSE 32400/tcp 3005/tcp 8324/tcp 32469/tcp 1900/udp 32410/udp 32412/udp 32413/udp 32414/udp
52+
EXPOSE 32400/tcp 1900/udp 3005/tcp 5353/udp 8324/tcp 32410/udp 32412/udp 32413/udp 32414/udp 32469/tcp
5353
VOLUME /config

Dockerfile.armhf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ RUN \
4949
COPY root/ /
5050

5151
# ports and volumes
52-
EXPOSE 32400/tcp 3005/tcp 8324/tcp 32469/tcp 1900/udp 32410/udp 32412/udp 32413/udp 32414/udp
52+
EXPOSE 32400/tcp 1900/udp 3005/tcp 5353/udp 8324/tcp 32410/udp 32412/udp 32413/udp 32414/udp 32469/tcp
5353
VOLUME /config

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,23 @@ Will set the environment variable `PASSWORD` based on the contents of the `/run/
133133

134134
## Optional Parameters
135135

136-
*Special note* - If you'd like to run Plex without requiring `--net=host` (`NOT recommended`) then you will need the following ports in your `docker create` command (you need to set PLEX_CLAIM to claim a server set up with bridge networking):
136+
If you want to run the container in bridge network mode (instead of the recommended host network mode) you will need to specify ports.
137+
The [official documentation for ports](https://support.plex.tv/articles/201543147-what-network-ports-do-i-need-to-allow-through-my-firewall/) lists 32400 as the only required port.
138+
The rest of the ports are optionally used for specific purposes listed in the documentation.
139+
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.
137140

138141
```
139142
-p 32400:32400 \
140-
-p 32400:32400/udp \
141-
-p 32469:32469 \
142-
-p 32469:32469/udp \
143+
-p 1900:1900/udp \
144+
-p 3005:3005 \
143145
-p 5353:5353/udp \
144-
-p 1900:1900/udp
146+
-p 8324:8324 \
147+
-p 32410:32410/udp \
148+
-p 32412:32412/udp \
149+
-p 32413:32413/udp \
150+
-p 32414:32414/udp \
151+
-p 32469:32469
152+
145153
```
146154

147155
The application accepts a series of environment variables to further customize itself on boot:
@@ -273,6 +281,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
273281

274282
## Versions
275283

284+
* **03.05.20:** - Update exposed ports and example docs for bridge mode.
276285
* **23.03.20:** - Remove udev hack (no longer needed), suppress uuid error in log during first start.
277286
* **04.12.19:** - Add variable for setting PLEX_CLAIM. Remove `/transcode` volume mapping as it is now set via plex gui and defaults to a location under `/config`.
278287
* **06.08.19:** - Add variable for setting UMASK.

readme-vars.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,23 @@ opt_param_env_vars:
3636
- { env_var: "PLEX_CLAIM", env_value: "", desc: "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."}
3737

3838
optional_parameters: |
39-
*Special note* - If you'd like to run Plex without requiring `--net=host` (`NOT recommended`) then you will need the following ports in your `docker create` command (you need to set PLEX_CLAIM to claim a server set up with bridge networking):
39+
If you want to run the container in bridge network mode (instead of the recommended host network mode) you will need to specify ports.
40+
The [official documentation for ports](https://support.plex.tv/articles/201543147-what-network-ports-do-i-need-to-allow-through-my-firewall/) lists 32400 as the only required port.
41+
The rest of the ports are optionally used for specific purposes listed in the documentation.
42+
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.
4043
4144
```
4245
-p 32400:32400 \
43-
-p 32400:32400/udp \
44-
-p 32469:32469 \
45-
-p 32469:32469/udp \
46+
-p 1900:1900/udp \
47+
-p 3005:3005 \
4648
-p 5353:5353/udp \
47-
-p 1900:1900/udp
49+
-p 8324:8324 \
50+
-p 32410:32410/udp \
51+
-p 32412:32412/udp \
52+
-p 32413:32413/udp \
53+
-p 32414:32414/udp \
54+
-p 32469:32469
55+
4856
```
4957
5058
The application accepts a series of environment variables to further customize itself on boot:
@@ -92,6 +100,7 @@ app_setup_block: |
92100
93101
# changelog
94102
changelogs:
103+
- { date: "03.05.20:", desc: "Update exposed ports and example docs for bridge mode." }
95104
- { date: "23.03.20:", desc: "Remove udev hack (no longer needed), suppress uuid error in log during first start." }
96105
- { date: "04.12.19:", desc: "Add variable for setting PLEX_CLAIM. Remove `/transcode` volume mapping as it is now set via plex gui and defaults to a location under `/config`." }
97106
- { date: "06.08.19:", desc: "Add variable for setting UMASK." }

0 commit comments

Comments
 (0)