2024-04-03, 06:12 PM
My docker container is binding to Defined LAN addresses : [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
It should be 192.168.1.0/24
I did some research and it said to add the subnet to this file like this:
jellyfin/config/config/network.xml
in the file add it to:
<LocalNetworkSubnets>192.168.1.0/24 <LocalNetworkSubnets />
It still bound to 192.168.0.0/16
So I added to the config line below it:
<LocalNetworkAddresses>192.168.1.201<LocalNetworkAddresses />
it still binds to Defined LAN addresses : [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
I'm using --net=host
The 3 adapters are:
Docker: 172.17.0.1
ethernet: 192.168.1.201
loopback: 127.0.0.1
How can I make my container bind to 192.168.1.0/24 instead of Defined LAN addresses : [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
Log file attached.
Here is what I'm using to deploy the container:
docker run -d --name jellyfin -e PUID=1000 -e PGID=1000 --net=host -v {config mount location} -v {cache mount location} -v {media mount location} --restart=unless-stopped jellyfin/jellyfin
It should be 192.168.1.0/24
I did some research and it said to add the subnet to this file like this:
jellyfin/config/config/network.xml
in the file add it to:
<LocalNetworkSubnets>192.168.1.0/24 <LocalNetworkSubnets />
It still bound to 192.168.0.0/16
So I added to the config line below it:
<LocalNetworkAddresses>192.168.1.201<LocalNetworkAddresses />
it still binds to Defined LAN addresses : [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
I'm using --net=host
The 3 adapters are:
Docker: 172.17.0.1
ethernet: 192.168.1.201
loopback: 127.0.0.1
How can I make my container bind to 192.168.1.0/24 instead of Defined LAN addresses : [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
Log file attached.
Here is what I'm using to deploy the container:
docker run -d --name jellyfin -e PUID=1000 -e PGID=1000 --net=host -v {config mount location} -v {cache mount location} -v {media mount location} --restart=unless-stopped jellyfin/jellyfin