You can use CoreOS (or any other platform that Docker can run on) and Kubernetes with SkyDNS integration , this will allow you to get the IP address of the wizard. Kubernetes also comes with a proxy (for service discovery), which sets environment variables in your containers. You can access them at runtime. I think the best way (and the way you need to go) is to use a service discovery tool like SkyDNS or something similar. Here is a simple example of Kubernet.
You can also do this with a fleet and side kicks, but I think Kuberentes helps you a bit and you better use it. It's just a little tricky to set up :)
I haven't used Mesos and Marathon yet, but I think they should do it too. They ( https://github.com/mesosphere/marathon#features ) have all the tools necessary to install your cluster.
source share