This repository provides everything you need to run Kafka in Docker.
docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=`docker-machine ip \`docker-machine active\`` --env ADVERTISED_PORT=9092 nikolauska/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
https://registry.hub.docker.com/u/nikolauska/kafka/
docker build -t nikolauska/kafka .
Content type
Image
Digest
Size
195.8 MB
Last updated
about 8 years ago
docker pull nikolauska/kafka