Keepalived floating IP for a docker service

  docker, docker-compose, floating-ip, keepalived

We have a docker-compose based application and running in two servers and can access with server-ip:port.

To integrate Keepalived floating IP for this service, I tried adding docker service running interface to keepalivd.conf. Interface was take as described here

docker exec -it my-container cat /sys/class/net/eth0/iflink
ip ad | grep 123

But keepalived service was not restarting

(keepalived1): Cannot find an IP address to use for interface vethfb0585d

How can I add this docker service to a keepalived IP address??

Source: Docker Questions