Dockerfile for Apache Kafka running kraft. Because I hate zookeeper.
The image is available directly from Docker Hub
- docker build -t kafka .
- docker run -d -p 9092:9092 kafka
This runs kafka without zookeeper in a single instance mode, topics are created automatically there is no need to create them beforehand.