Public | Automated Build

Last pushed: 2 years ago
Short Description
Docker image for kafka with zookeeper
Full Description

This is extension for spotify/kafka

Kafka in Docker

This repository provides everything you need to run Kafka in Docker.


The main hurdle of running Kafka in Docker is that it depends on Zookeeper.
Compared to other Kafka docker images, this one runs both Zookeeper and Kafka
in the same container. This means:

  • No dependency on an external Zookeeper host, or linking to another container
  • Zookeeper and Kafka are configured to work together out of the box


docker run --name kafka \
-p 2181:2181 \
-p 9092:9092 \
--env ADVERTISED_LISTENERS=$(hostname):9092\ 
-d shukla2009/kafka
<KAFKA_HOME>\bin\ --broker-list $(hostname):9092 --topic test
<KAFKA_HOME>\bin\ --zookeeper $(hostname):2181 --topic test
Docker Pull Command
Source Repository