Confused about network setup for docker apps under 24.10

I have been trying to install Plex with the new docker system and I am very confused about network settings.

First there is address pools in the general settings which is default to 17.16.0.0/12 I can change this to the same pool as my primary network address. Then under setup of the app it has default 3 networks 10.0.0.0/8 172.16.0.0/12 and 192.168.0.0/16. This doesn’t work nor does it work if I change them, it says no available IPv4 address on this network address pool.

The only thing that works is if I enable host network, this places the app under the same IP as the truenas server.

What I want is to allow Plex app to pull or be assigned a new address in my network range. How do I do this or do I need a separate NIC to do this?

Do not change the address pools. Especially, do not change them to your primary network adress range. The address pool is for the internal docker network bridge. The docker network bridge cannot be directly accessed from the outside.

Avoid the “host” network option (for security reasons).

When you specify a port mapping in the app configuration docker will create a proxy to direct outside traffic to the internal bridge (it’s why you have all the /usr/bin/docker-proxy processes).

Apps are accessible via <truenas-ip>:<mapped-port>.

I don’t think that giving containers their own “outside” IP is supported in the web-ui.

If you’re familiar with docker you can do it using the ipvlan or macvlan drivers. But you’re going to either have to use the command-line or write your own docker-compose files.

1 Like

Thanks for the response. It will not install unless I select host network. Also, can I access plex from outside my network if I open the 32400 port on my network?

What error do you get if you don’t select host network? I don’t have any troubles on my system. Did you make sure that your address pool in Apps > Configuration > Settings is back to 172.17.0.0/12?

With “outside” do you mean from WAN (i.e. the internet)? If so, then you have to port forward on your router. After that you can access your plex instance from the internet.

At that point the question because… should you?

I suggest looking into using a VPN instead of port forwarding.

2 Likes