ezhaar / docker-zookeeper

zookeeper-3.4.6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zookeeper Server Image

Build the Container

git clone git://github.com/ezhaar/docker-zookeeper
cd docker-zookeeper
docker build . -t ezhaar/zkserver

Start Zookeeper Server

docker run -d --name zkserver ezhaar/zkserver

# get the ip address of zkserver
docker inspect zkserver | grep -i ip

Zookeeper clients can now connect to the ip address of zkserver

zkCli.sh -server <IP_ADD>:2181

Testing from same container

# connect an interactive shell on the running container
docker exec -it zkserver bash

# connect to zookeper
/zookeeper-3.4.9/bin/zkCli.sh 




About

zookeeper-3.4.6