mirror of
https://github.com/jellyfin/jellyfin.org.git
synced 2026-09-03 06:30:03 +03:00
Merge pull request #1574 from BotBlake/pr-1392
Networking mode (switch from host)
This commit is contained in:
@@ -56,7 +56,8 @@ Using host networking (`--net=host`) is optional but required in order to use DL
|
||||
docker run -d \
|
||||
--name jellyfin \
|
||||
--user uid:gid \
|
||||
--net=host \
|
||||
-p 8096:8096/tcp \
|
||||
-p 7359:7359/udp \
|
||||
--volume /path/to/config:/config \ # Alternatively --volume jellyfin-config:/config
|
||||
--volume /path/to/cache:/cache \ # Alternatively --volume jellyfin-cache:/cache
|
||||
--mount type=bind,source=/path/to/media,target=/media \
|
||||
|
||||
@@ -21,7 +21,9 @@ services:
|
||||
image: jellyfin/jellyfin
|
||||
container_name: jellyfin
|
||||
user: uid:gid
|
||||
network_mode: 'host'
|
||||
ports:
|
||||
- 8096:8096/tcp
|
||||
- 7359:7359/udp
|
||||
volumes:
|
||||
- /path/to/config:/config
|
||||
- /path/to/cache:/cache
|
||||
|
||||
@@ -16,7 +16,8 @@ Steps to run Jellyfin using Podman are similar to the Docker steps.
|
||||
--detach \
|
||||
--label "io.containers.autoupdate=registry" \
|
||||
--name myjellyfin \
|
||||
--network host \
|
||||
--publish 8096:8096/tcp \
|
||||
--publish 7359:7359/udp \
|
||||
--rm \
|
||||
--user $(id -u):$(id -g) \
|
||||
--userns keep-id \
|
||||
@@ -28,10 +29,11 @@ Steps to run Jellyfin using Podman are similar to the Docker steps.
|
||||
|
||||
3. Open the necessary ports in your machine's firewall if you wish to permit access to the Jellyfin server from outside the host.
|
||||
This is not done automatically when using rootless Podman.
|
||||
If your distribution uses `firewalld`, the following commands save and load a new firewall rule opening the HTTP port `8096` for TCP connections.
|
||||
If your distribution uses `firewalld`, the following commands save and load a new firewall rule opening the HTTP port `8096` for TCP connections. Additionaly port 7359 UDP needs to be opened for auto discovery.
|
||||
|
||||
```sh
|
||||
sudo firewall-cmd --add-port=8096/tcp --permanent
|
||||
sudo firewall-cmd --add-port=7359/udp --permanent
|
||||
sudo firewall-cmd --reload
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user