Sign inSign up

itsaur/zookeeper-replicated

By itsaur

•Updated over 7 years ago

Running Zookeeper in replicated mode as a single docker service.

Image
2

10K+

itsaur/zookeeper-replicated repository overview

⁠zookeeper-docker-swarm

⁠Available Tags:
⁠What is Zookeeper with Docker Swarm?

This is an extension to the official Zookeeper Docker image⁠. This image lets you configure Zookeeper in replicated mode⁠ as a single docker service, instead of creating three (or more) different services for each one of your nodes as proposed by the official image.

You will need a docker overlay network and an environment variable named SERVICE_NAME that equals the docker service name, when creating the swarm service. Using this variable, each container will be able to discover the rest ZooKeeper nodes in their network.

An example of the docker network create is:

docker network create \
    --driver overlay zookeeper-net

An example of the docker service create is:

docker service create \
    --env "REPLICAS=3" \
    --env "SERVICE_NAME=zookeeper" \
    --name zookeeper \
    --network zookeeper-net \
    --publish 2181:2181 \
    --replicas=3 \
    itsaur/zookeeper-replicated

Tag summary

Content type

Image

Digest

Size

78.6 MB

Last updated

over 7 years ago

docker pull itsaur/zookeeper-replicated