Docker image for Kafka message broker including Zookeeper
docker run --rm -p 2181:2181 -p 9092:9092 -e ADVERTISED_HOST=localhost terascope/kafka-zookeeper:v1.1.0
Run Kafka console consumer
kafka-console-consumer --bootstrap-server localhost:9092 --topic test
Run Kafka console producer
kafka-console-producer --broker-list localhost:9092 --topic test
test1
test2
test3
Verify that messages have been received in console consumer
test1
test2
test3
https://hub.docker.com/r/terascope/docker-kafka-zookeeper/
Originally cloned and inspired by https://github.com/hey-johnnypark/docker-kafka-zookeeper and https://github.com/spotify/docker-kafka.