Skip to content

Docker image for Kafka (0.10.x - 0.11.x - 1.x, 2.x) message broker including Zookeeper

Notifications You must be signed in to change notification settings

morismor/docker-kafka-zookeeper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Kafka Zookeeper Build Status

Docker image for Kafka message broker including Zookeeper

Build

$ docker build .
[...]
Successfully built 9b382d40bccc

Run container

docker run -p 2181:2181 -p 9092:9092 -e ADVERTISED_HOST=localhost 9b382d40bccc

Test

Run Kafka console consumer

kafka-console-consumer --bootstrap-server localhost:9092 --topic test

Run Kafka console producer

kafka-console-producer --broker-list localhost:9092 --topic test
test1
test2
test3

Verify that messages have been received in console consumer

test1
test2
test3

Get from Dockerhub

https://hub.docker.com/r/johnnypark/kafka-zookeeper/

Credits

Originally cloned and inspired by https://github.com/spotify/docker-kafka

About

Docker image for Kafka (0.10.x - 0.11.x - 1.x, 2.x) message broker including Zookeeper

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 72.2%
  • Dockerfile 27.8%