Kafka is a utility for managing, transforming, forwarding and appropriately reacting to data being streamed as events. Comparable to other message brokers, Kafka's durability make it a great choice for software, that processes messages at a large scale.
This image is based on the official Apache Kafka image. It is built for Sourcemation content delivery and open source analysis platform.
Run a temporary container with the Apache Kafka broker:
docker run --rm -d --name kafka-broker -it sourcemation/kafka:latest
Simple commands to create topics and produce/consume messages:
Create a topic with the name test:
./kafka-topics.sh --bootstrap-server localhost:9092 --create --topic test
Send the message 'Hi mom!' to the topic test:
echo 'Hi mom!' | ./kafka-console-producer.sh --bootstrap-server localhost:9092 --topic test
Consume messages from the topic test (Use Ctrl+C to stop):
./kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning
This image exposes the following ports:
Please note that the ports need to be either manually forwarded with the
-p option or let Docker choose some for you with the -P option.
This image has the following volumes set:
We'd love for you to contribute! You can request new features, report bugs, or submit a pull request with your contribution to this image on the Sourcemation GitHub repository.
Disclaimer: The sourcemation/kafka image is not affiliated with the
Apache Software Foundation. The respective companies and organisations own the
trademarks mentioned in the offering. The sourcemation/kafka image is a
separate project and is maintained by Sourcemation.
The image is based on the Apache Kafka Official Docker Image. For more information and advanced use cases consult that image's documentation.
Our image has set the WORKDIR to /opt/kafka/bin. You can skip the
--workdir /opt/kafka/bin option.
The Kafka server runs as the system user appuser, UID and GID 1000.
A detailed risk analysis report of the image and its components can be found on the Sourcemation platform.
For more information about Kafka, check out the Apache Kafka Introduction page. For more advanced usage examples, check out the Apache Kafka Quickstart page.
The base license for the solution (Apache Kafka 4.4.0) is the Apache License, Version 2.0. Please visit that link for a more in-depth information about the licensing of the third-party components used as part of the upstream product. The licenses for additional components shipped as part of this image can be found on the image's appropriate Sourcemation entry.
Content type
Image
Digest
sha256:12667601a…
Size
414.6 MB
Last updated
3 days ago
docker pull sourcemation/kafka