Single-container Kafka/Zookeeper, based on spotify/kafka. To be used for test purposes only.
323
Note 1: this was forked from spotify/kafka. The only changes are that the image is updated to use recent Kafka/Zookeeper versions, that the Zookeeper version can now be specified, and that the kafkaproxy is not included.
Note 2: it is NOT recommended to run this in production, I forked and updated this for testing purposes only. Depend on this in a production system at your own risk.
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 spotify/kafka
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
lindeboomio/kafka
The docker image with both Kafka and Zookeeper. Built from the kafka
directory.
https://registry.hub.docker.com/u/lindeboomio/kafka/
docker build -t lindeboomio/kafka kafka/
Content type
Image
Digest
Size
195.8 MB
Last updated
almost 9 years ago
docker pull lindeboomio/kafka