Public | Automated Build

Last pushed: a month ago
Short Description
Docker image to set up a ZooKeeper cluster.
Full Description


This project contains the files to set up a ZooKeeper cluster with Docker.

Image on Docker Hub:


Build Docker image

$ git clone
$ cd docker-zookeeper
$ make build

Launch cluster

Environmental variables:

  • ZK_CLUSTER_SIZE – The number of nodes in your ZooKeeper cluster
    (default: 3)
$ make start

Bringing up cluster nodes:

Started zookeeper1 (
Started zookeeper2 (
Started zookeeper3 (


$ make test
./ Mode: follower Mode: leader Mode: follower

Stop and destroy

$ make stop
Stopped the cluster and cleared all of the running containers.

Credits and license

License: Apache 2.0.

For this project I took some pieces of scripts and settings from

Docker Pull Command
Source Repository