Sign inSign up

cilium/zookeeper

Sponsored OSS

By Isovalent.com

•Updated almost 6 years ago

Fork of digitalwonderland/zookeeper with stable tag

Image
0

10K+

cilium/zookeeper repository overview

This is a fork of https://hub.docker.com/r/digitalwonderland/zookeeper⁠ with a stable 1.0 tag. The original sources are available at https://github.com/digital-wonderland/docker-zookeeper⁠.

Docker Stars Docker Pulls

⁠About:

Docker⁠ image based on openjdk:8-jre-alpine⁠

⁠Additional Software:

⁠Usage:

⁠General Configuration:

ZooKeeper can be configured via environment variables:

Environment VariableZookeeper PropertyDefault
ZOOKEEPER_IDN/A1
ZOOKEEPER_TICK_TIMEtickTime2000
ZOOKEEPER_INIT_LIMITinitLimit10
ZOOKEEPER_SYNC_LIMITsyncLimit5
ZOOKEEPER_CLIENT_CNXNSmaxClientCnxns60
ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNTautopurge.snapRetainCount3
ZOOKEEPER_AUTOPURGE_PURGE_INTERVALautopurge.purgeInterval0

⁠Standalone Mode:

If you are happy with the defaults, simply run the container:

$ docker run -d -p 2181:2181 -p 2888:2888 -p 3888:3888 digitalwonderland/zookeeper

⁠Clustered Mode:

To run a cluster, just add more ZOOKEEPER_SERVER_X environment variables (replace X with the respective id) set to the respective ip address.

For example to run a cluster on 172.17.8.101, 172.17.8.102 and 172.17.8.103, run the following on the respective hosts:

On 172.17.8.101:

$ docker run -d -p 2181:2181 -p 2888:2888 -p 3888:3888 -e ZOOKEEPER_ID=1 -e ZOOKEEPER_SERVER_1=172.17.8.101 -e ZOOKEEPER_SERVER_2=172.17.8.102 -e ZOOKEEPER_SERVER_3=172.17.8.103 digitalwonderland/zookeeper

On 172.17.8.102:

$ docker run -d -p 2181:2181 -p 2888:2888 -p 3888:3888 -e ZOOKEEPER_ID=2 -e ZOOKEEPER_SERVER_1=172.17.8.101 -e ZOOKEEPER_SERVER_2=172.17.8.102 -e ZOOKEEPER_SERVER_3=172.17.8.103 digitalwonderland/zookeeper

On 172.17.8.103:

$ docker run -d -p 2181:2181 -p 2888:2888 -p 3888:3888 -e ZOOKEEPER_ID=3 -e ZOOKEEPER_SERVER_1=172.17.8.101 -e ZOOKEEPER_SERVER_2=172.17.8.102 -e ZOOKEEPER_SERVER_3=172.17.8.103 digitalwonderland/zookeeper

Note: A more dynamic configuration is not possible with Zookeeper v3.4 which will change with v3.5⁠.

Tag summary

Content type

Image

Digest

Size

88.8 MB

Last updated

almost 6 years ago

docker pull cilium/zookeeper

This week's pulls

Pulls:

7

Last week