I get this error trying to deploy Marathon as Docker container on a dedicated Mesos slave. It's using a remote Zookeeper, running on 3 Mesos master.
If I run Marathon directly from the slave itself (package), using the same configuration used in the Docker environment, everything is fine.
From inside the container, I get:
Problem accessing /. Reason:
Could not determine the current leader
- Tried with both "host" and "bridge" Docker network mode
- Zookeeper and Mesos master are perfectly reachable from inside the container
- Zookeeper storage path is present for the new marathon