I would like to use a docker compose to create containers.
One of my container needs to access host network interface in order to use “ip addr” command on interface (to create a VIP, virtual ip address).
After a lot of research, I have found that I have to setup container with “host” network_mode, to access host network interface.
My goal is to do not expose my container on host network, BUT being able to access host network interface.
Is there a way to get both options at the same time?
Thank you very much in advance,