eucm/kzk
Kafka and Zookeeper Docker Image
1.3K
This repository provides everything you need to run Kafka with Zookeeper in Docker.
This Docker image is used in Rage Analytics. For more information check out the docker-compose.yml file.
The main hurdle of running Kafka in Docker is that it depends on Zookeeper. Compared to other Kafka docker images, this one runs both Zookeeper and Kafka in the same container. This means:
Optional ENV variables:
docker-machine ip \
docker-machine active``docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=`docker-machine ip \`docker-machine active\`` --env ADVERTISED_PORT=9092 eucm/kzk
Aditional configuration for Zookeeper is established in the aditionalZoo.cfg file.
https://hub.docker.com/r/eucm/kzk/
docker build -t eucm/kzk .
docker pull eucm/kzk