April-10th-2019, 05:57 PM
I was surprised as well, to see the adapter there.
Yes, I am using "host" as network type.
When using "192.168.0.1" as IP_ADRESS, I get the expected behaviour with 255.255.255.0 as Subnetmask. But when I use "10.7.1.115" as IP-Adress, the subnetmask is setted wrongly to "255.0.0.0".
What happens to you, if you use my configuration?
Thanks!
Andi
Quote:Just let me ask you this. Do you use the network mode "host" when you start your container?
Yes, I am using "host" as network type.
Quote:I made tests with the new container and set the ip settings via the environment variables. I set IP_ADDRESS to 192.168.0.1 and SUB_NETMASK to 255.255.255.0 and when I jump into the container with a shell and call "ip addr show" it says 192.168.0.1/24 as it should. I don't see the subnet mask misconfigured.
When using "192.168.0.1" as IP_ADRESS, I get the expected behaviour with 255.255.255.0 as Subnetmask. But when I use "10.7.1.115" as IP-Adress, the subnetmask is setted wrongly to "255.0.0.0".
What happens to you, if you use my configuration?
Code:
address 10.7.1.115
network 255.255.255.0
gateway 10.7.1.1
Thanks!
Andi