Public | Automated Build

Last pushed: 4 months ago
Short Description
Short description is empty for this repo.
Full Description


Run Apache Kafka cluster in docker containers and support multi-node cluster.

/kafka is exposed as the data directory, to be linked to a host directory.

Environment variables starting with KAFKA_ will be converted into proper Kafka configuration options, e.g. KAFKA_MESSAGE_MAX_BYTES will be converted to message.max.bytes.

The following environment variables are good to know.

  • KAFKA_ADVERTISED_HOST_NAME This is required to be the IP address of the docker host. For example, on OSX, if using docker-machine with the default driver, it's the address

  • KAFKA_ADVERTISED_PORT Default to be 9092

  • KAFKA_BROKER_ID If unspecified, 0.

  • KAFKA_LOG_DIRS If unspecified, default will be /kafka/kafka-logs-$KAFKA_BROKER_ID

  • KAFKA_ZOOKEEPER_CONNECT Comma-delimited zookeeper addresses. If unspecified, default will be zookeeper, i.e. the name for the linked zookeeper container (e.g. using docker-compose and named the linked zookeeper zookeeper).


Docker Pull Command
Source Repository