A fedora based Apache Zookeeper container.
docker pull alectolytic/zookeeper
docker build --tag fedora/zookeeper .
HOST_DATA_DIR=/path/to/data
HOST_CONF_DIR=/path/to/conf
HOST_LOG_DIR=/path/to/log
docker run \
-p 2181:2181 \
-v ${HOST_DATA_DIR}:/var/lib/zookeeper/data \
-v ${HOST_CONF_DIR}:/var/lib/zookeeper/conf \
-v ${HOST_LOG_DIR}:/var/lib/zookeeper/log \
fedora/zookeeper
As any zookeeper instance, the configuration directory can contain zoo.cfg, log4j.properties etc.
These files are linked at /etc/zookeeper for use by the start script.
For a full list refer to the dockerfile.
ENV ZOO_ETC=/etc/zookeeper
ENV ZOO_HOME=/var/lib/zookeeper
ENV ZOO_CONF=${ZOO_HOME}/conf
ENV ZOO_DATA=${ZOO_HOME}/data
ENV ZOO_LOG=${ZOO_LOG}/log
ENV ZOO_USER=zookeeper
The following volumes can be mounted from the host.
| Volume | Description |
|---|---|
| /var/lib/zookeeper/conf | Zookeeper configuration |
| /var/lib/zookeeper/data | Zookeeper data |
| /var/lib/zookeeper/log | Zookeeper logs |
| Port | Description |
|---|---|
| 2181 | Client port |
| 2888 | Follower connection port (if leader) |
| 3888 | Server connection port (during leader election) |
Content type
Image
Digest
sha256:8856054d3…
Size
326.4 MB
Last updated
almost 11 years ago
docker pull alectolytic/zookeeper