Tracenji
Members
-
Joined
-
Last visited
Solutions
-
Tracenji's post in how to create another docker bridge to a different LAN ip? was marked as the answerUPDATE: i managed to do it
managed to do it using a user script (plugin available in community apps)
user script runs at first array start with the command
ip addr add 192.168.1.150/24 dev br0 and then i also created a docker network by running this command in the unraid web terminal
docker network create --driver=bridge --opt com.docker.network.bridge.host_binding_ipv4=192.168.1.150 --opt com.docker.network.bridge.name=192.168.1.150 192.168.1.150 and now i have a custom network called "192.168.1.150" available in my docker configurations
NOTE: the Bridge network that comes with unraid does not bind to a specific IP, that means if a port is used by another docker bridge network then it will fail as the port is already bound, to avoid this, repeat the steps above with the host ip or a different IP, e.g. 192.168.1.200 (i did not test with the hosts ip address but i do not see any reason it would not work)
NOTE 2: you may want to reserve the IP addresses you add in your DHCP server (usually your router) so that other devices do not get assigned those IPs, just reserve them to some unused MAC address like 11:11:11:11:11:11