This repository provides everything you need to run Kafka (without a Zookeeper, with KRaft support) in Docker environment. Image is based on the latest stable Eclipse Temurin (OpenJDK image was deprecated by RedHat).
Starting with version 3.4.0, simple tag and tag with -kraft add-on are the same builds.
docker run -d -p 9092:9092 --name kafka wlsc/kafka
export KAFKA=$(docker-machine ip $(docker-machine active)):9092
kafka-console-producer.sh --broker-list $KAFKA --topic test
kafka-console-consumer.sh --topic test --from-beginning --bootstrap-server localhost:9092
-
wlsc/kafka
The docker image with both Kafka with KRaft. Built from the
kafka
directory.
https://registry.hub.docker.com/u/wlsc/kafka/
docker buildx build --platform linux/arm64,linux/amd64 -t wlsc/kafka:latest .
Import single platform into Docker Desktop
docker buildx build --platform linux/arm64 -t wlsc/kafka:latest --load .
You can find it here https://github.com/wlsc/docker-kafka