Hi all,
I'm trying to give a static address to a docker container on Scale.
I tried 2 solutions, but haven't been able to make either work.
Solution 1: set a static IP for the container.
When I set this, the container still takes the main IP of the interface.
I alo tried to set the IP as an alias for interface br0 in the network configuration of the server.
Solution 2: use DHCP and set the IP on the router.
The issue I have here is that the MAC address of the container is not static, so I need to change the DHCP configuration of the router every time the container restarts.
I can't find a way to use the --mac-address parameter via the Truenas interface.
Any suggestion?
Thanks!
I'm trying to give a static address to a docker container on Scale.
I tried 2 solutions, but haven't been able to make either work.
Solution 1: set a static IP for the container.
When I set this, the container still takes the main IP of the interface.
I alo tried to set the IP as an alias for interface br0 in the network configuration of the server.
Solution 2: use DHCP and set the IP on the router.
The issue I have here is that the MAC address of the container is not static, so I need to change the DHCP configuration of the router every time the container restarts.
I can't find a way to use the --mac-address parameter via the Truenas interface.
Any suggestion?
Thanks!