This is a minimal
keepalived image, that does nothing but sets up a virtual IP address (VIP) on the host. Need to be started as
--privileged to be able to manipulate host's network IF. Uses password auth to keep it simple.
Configuration should be passed as environment variables
INTERFACEnetwork interface to set up VIP as an alias
STATEinitial state: MASTER|SLAVE
PASSpeer authentication password
VIPvirtual IP address
docker run --privileged --net=host\ -v /lib/modules:/lib/modules\ -e INTERFACE='eth0'\ -e STATE='MASTER'\ -e PASS='example'\ -e VIP='172.27.14.14'\ -e PRIORITY='100'\ zsoltm/keepalived
Should spin up a container which sets up virtual 172.27.14.14 as an alias on eth0. The
lib/modules bindig is needed to let keepalived load ipvs kernel module on demand.