Hello every one
Does anyone have an idea to make a virtual ip switching from a container to another (on the same host), reachable from outside the docker host ? I can’t map a host port to the container with the virtual ip since it will be linked to the same container for ever, even it fails. How can I do “dynamic” mapping ? with or without virtual ip.
I use keepalived on my containers with --privileged=true, and my virtual ip works fine, going from one container to another when I kill the container with the vip.
The goal is to make a galera cluster with containers, on a single docker host ( or in a swarm cluster eventually), and to send some sql requests from outside my Docker Host. those requests should make a connection to the galera cluster through an unique IP address (the Docker host IP address), on port 3306.
Thank you !