Custom image for Zookeeper ensemble
To build it:
docker build -t eaudeweb/zookeeper .
This image will work for an arbitrary number of Zookeeper nodes.
The best bractice is to use an odd number of machines.
Before running the container, configure the environment variables in
file, as it follows:
HOSTNAMES:ip1;ip2;ip3List the hostnames of your machines separated by
MYIDThe index of the current machine in the list above (starting with
The following ports are exposed by Docker:
2181- clients will use this port to connect to Zookeeper
2888- followers (zk nodes) use this port to connect to the leader
3888- leader selection algorithm