Sign inSign up

soldevelo/zookeeper

By soldevelo

•Updated about 14 hours ago

Zookeeper by SolDevelo, a maintained fork of the Bitnami Zookeeper image.

Image
Networking
Security
Integration & delivery
0

2.0K

soldevelo/zookeeper repository overview

⁠ZooKeeper packaged by SolDevelo

⁠What is Apache ZooKeeper?

Apache ZooKeeper provides a reliable, centralised register of configuration data and services for distributed applications.

Overview of Apache ZooKeeper⁠
Trademarks: This Docker image is maintained by SolDevelo and is based on the Bitnami ZooKeeper⁠ container. The respective trademarks mentioned (e.g., Apache ZooKeeper) are owned by their respective companies. Use of these trademarks does not imply any affiliation or endorsement by those companies.

Bitnami is a trademark of Broadcom Inc. This image is an independent build maintained by SolDevelo and is not affiliated with, endorsed or certified by Broadcom Inc. References to Bitnami describe where the packaging scripts come from.

⁠TL;DR

docker run --name zookeeper -e ALLOW_EMPTY_PASSWORD=yes docker.io/soldevelo/zookeeper:latest

⁠Get this image

docker pull docker.io/soldevelo/zookeeper:latest

To use a specific version:

docker pull docker.io/soldevelo/zookeeper:[TAG]

Or build it yourself:

git clone https://github.com/soldevelo/containers.git
cd containers/soldevelo/zookeeper/3.9/debian-12
docker build -t soldevelo/zookeeper:latest .

⁠Using docker-compose

cd containers/soldevelo/zookeeper/3.9/debian-12
docker compose up

⁠Persisting your data

Mount a volume at /bitnami/zookeeper to persist data across container restarts:

services:
  zookeeper:
    image: docker.io/soldevelo/zookeeper:3.9
    volumes:
      - /path/to/zookeeper-persistence:/bitnami/zookeeper
    environment:
      - ALLOW_EMPTY_PASSWORD=yes

Note: As this is a non-root container, the mounted directory must be writable by UID 1001.

⁠Configuration

ZooKeeper is configured via environment variables. Key variables:

VariableDefaultDescription
ALLOW_EMPTY_PASSWORDnoAllow unauthenticated access (set yes for dev)
ZOO_SERVER_ID1Unique server ID in a cluster
ZOO_PORT_NUMBER2181Client port
ZOO_TICK_TIME2000ZooKeeper tick time in milliseconds
ZOO_MAX_CLIENT_CNXNS60Max concurrent client connections
ZOO_SERVERS(unset)Cluster server list (e.g. server1:2888:3888)
ZOO_HEAP_SIZE1024JVM heap size in MB
ZOO_LOG_LEVELERRORLog level (INFO, WARN, ERROR)
ZOO_ENABLE_AUTHnoEnable SASL authentication
ZOO_CLIENT_USER(unset)SASL client username
ZOO_CLIENT_PASSWORD(unset)SASL client password
ZOO_SERVER_USERS(unset)Comma-separated SASL server usernames
ZOO_SERVER_PASSWORDS(unset)Comma-separated SASL server passwords

See the Bitnami ZooKeeper documentation⁠ for the full list.

⁠Ports

PortDescription
2181Client connections
2888Peer connections (cluster)
3888Leader election (cluster)
8080AdminServer HTTP port

⁠License

Apache-2.0. Based on Bitnami ZooKeeper © Broadcom, Inc.

Tag summary

Content type

Image

Digest

sha256:e52a3cb2b…

Size

211.8 MB

Last updated

4 days ago

docker pull soldevelo/zookeeper