Quick reference
-
The official Zookeeper docker image.
-
Maintained by: openEuler CloudNative SIG.
-
Where to get help: openEuler CloudNative SIG, openEuler.
Zookeeper | openEuler
Current Zookeeper docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or another by distributed applications. Each time they are implemented there is a lot of work that goes into fixing the bugs and race conditions that are inevitable. Because of the difficulty of implementing these kinds of services, applications initially usually skimp on them, which make them brittle in the presence of change and difficult to manage. Even when done correctly, different implementations of these services lead to management complexity when the applications are deployed.
Learn more about ZooKeeper on the ZooKeeper Wiki.
Supported tags and respective Dockerfile links
The tag of each zookeeper docker image is consist of the version of zookeeper and the version of basic image. The details are as follows
| Tag | Currently | Architectures |
|---|---|---|
| 3.9.4-oe2403sp1 | zookeeper 3.9.4 on openEuler 24.03-LTS-SP1 | amd64, arm64 |
| 3.8.3-oe2203sp3 | zookeeper 3.8.3 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| 3.9.2-oe2203sp3 | zookeeper 3.9.2 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
Usage
In this usage, users can select the corresponding {Tag} and container startup options based on their requirements.
-
Pull the
openeuler/zookeeperimage from dockerdocker pull openeuler/zookeeper:{Tag} -
Start a zookeeper instance
docker run -d --name my-zookeeper -p 2181:2181 openeuler/zookeeper:{Tag}After the instance
my-zookeeperis started, access the Zookeeper service throughhttp://localhost:2181. -
Container startup options
Option Description -p 2181:2181Expose ZooKeeper server on localhost:2181.-v /path/to/config/file:/etc/zookeeper/zoo.cfgLocal ZooKeeper configuration file. -v zookeeperData:/var/lib/zookeeper/dataPersist data in a docker volume named zookeeperData. Make sure that the mount point is consistent with the configuration propertydataDir.-v zookeeperLogData:/var/lib/zookeeper/data-logPersist data in a docker volume named zookeeperLogData. Make sure that the mount point is consistent with the configuration propertydataLogDir. -
View container running logs
docker logs -f my-zookeeper -
To get an interactive shell
docker exec -it my-zookeeper /bin/bash
Question and answering
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.