A simple docker image with both Kafka and Zookeeper.
10K+
This is based on the idea from spotify/kafka which provides a single image containing both kafka and zookeeper. The intent of this image is primarily to support development while production systems may use a managed solution like Amazon MSK.
This follows the instruction of the Kafka quickstart
ZOOKEEPER_HEAP_OPTS and KAFKA_HEAP_OPTS specify the heap sizes. It is not recommended to use the cgroup limits (i.e. -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap) unless you plan to give it ample size which is around 1GB. The sizes set allow the container to run with a memory limit of 256MB (with swap).
The default advertised host port is localhost:9092. If this needs to change set the environment KAFKA_ADVERTISED_HOST_PORT.
kafka starts Zookeeper and Kafkamessages <topic> shows the messages in a given topic.topics lists all the topicsContent type
Image
Digest
Size
248.9 MB
Last updated
over 6 years ago
docker pull trajano/kafka