This image is based on the official Apache Kafka image. It is built for SourceMation content delivery and open source analysis platform.
Running the image is as simple as running the following command:
docker run -d --name kafka-broker eurolinux/eurolinux-9-kafka:latest
You can get into the image by running the following command:
docker exec -it kafka-broker /bin/bash
Our image has set the WORKDIR to /opt/kafka/bin. You can skip the --workdir /opt/kafka/bin option.
Simple commands to create topics and produce/consume messages:
# create a topic with name test
./kafka-topics.sh --bootstrap-server localhost:9092 --create --topic test
# send message 'Hi mom!' to topic test
echo 'Hi mom!' | ./kafka-console-producer.sh --bootstrap-server localhost:9092 --topic test
# consume messages from topic test use ctrl+c to stop
./kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning
Lastly you can remove the container by running the following command:
docker rm -f kafka-broker
Content type
Image
Digest
sha256:02fad0596…
Size
273 MB
Last updated
over 2 years ago
docker pull eurolinux/eurolinux-9-kafka