This repository provides everything you need to run Kafka 0.10.0.0 in Docker
1.1K
This repository provides everything you need to run Kafka 0.10.0.0 in Docker.
Based on spotify/docker-kafka with some additions from other branches.
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:
ADVERTISED_HOST: the host name part of the advertised.listeners config. This will be advertised on ZooKeeperADVERTISED_PORT: port for advertised.listenersADVERTISED_PROTO: protocol to advertise. Defaults to PLAINTEXTZK_CHROOT: Zookeeper chroot. Defaults to /KAFKA_ will be transformed to a config parameter name: e.g. KAFKA_AUTO_CREATE_TOPICS_ENABLE=false will set auto.create.topic to falsedocker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=$(docker-machine ip $(docker-machine active)) --env ADVERTISED_PORT=9092 orbat/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/orbat/kafka/
docker build -t orbat/kafka .
Content type
Image
Digest
Size
176 MB
Last updated
about 10 years ago
docker pull orbat/kafka