1

I have a question.

I am running mesos-master as docker container. When I start it, it writes its IP to zookeeper, so any slave running on same host can connect to mesos master. Mesos-master is not accessible from any other host. Mesos-master port is available on host public IP by docker port expose I cannot run mesos-master in container with hosts public IP, because it cannot listen on ip it doesn't have

Is there any way I could propagate to zookeeper --ip=(containers local IP) and --public-ip=(hosts IP which will be propagated to zookeeper)

One solution that came to my mind was using some proxy as described by CoreOS guys here: http://coreos.com/blog/docker-dynamic-ambassador-powered-by-etcd/ But I would like to solve it elegantly with changing IP in zookeeper.

I've my docker and unit files saved here: https://github.com/veverjak/coreos-mesos-marathon

Did anyone try this?

2

Easiest solution that I've found is using hosts IP addresses in container.

Docs are here

I've implemented it this way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.