Test kafka+zookepper cluster
6.9K
This images was originally forked from spotify/kafka to be able tag multiple kafka versions instead of using single latest
===============
This repository provides everything you need to run Kafka in Docker.
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:
docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=`docker-machine ip \`docker-machine active\`` --env ADVERTISED_PORT=9092 nginate/kafka-docker-bundle
export KAFKA=`docker-machine ip \`docker-machine active\``:9092
kafka-console-producer.sh --broker-list $KAFKA --topic test
export ZOOKEEPER=`docker-machine ip \`docker-machine active\``:2181
kafka-console-consumer.sh --zookeeper $ZOOKEEPER --topic test
Optional ENV variables:
nginate/kafka-docker-bundle
The docker image with both Kafka and Zookeeper.
https://hub.docker.com/r/nginate/kafka-docker-bundle/
docker build -t nginate/kafka-docker-bundle ./
Content type
Image
Digest
Size
168.1 MB
Last updated
about 10 years ago
docker pull nginate/kafka-docker-bundle