Apache Kafka is a distributed streaming platform used for building real-time data pipelines and streaming apps. It is horizontally scalable, fault-tolerant, wicked fast, and runs in production in thousands of companies. Kafka requires a connection to a Zookeeper service.
latest(2.11/1.0.0/Dockerfile)1.0.0(2.11/1.0.0/Dockerfile)0.11.0.1(2.11/0.11.0.1/Dockerfile)0.10.0.0(2.11/0.10.0.0/Dockerfile)
- install docker-engine https://docs.docker.com/engine/installation/
- This image can be used by simply running
$ docker run --name=kafka -p 9092:9092 -td phenompeople/kafka
Above command runs kafka container with port 9092 mapped to host and connecting to local zookeeper based on default server_config.properties.
- To make image run even after reboot use extra option --restart=always
$ docker run --restart=always --name=kafka -p 9092:9092 -td phenompeople/kafka
Note: If you remove the container all your data and configurations will be lost, and the next time you run the image the database will be reinitialized.
To avoid this loss of data, you should mount a volume that will persist even after the container is removed. If you are using default configuration mount the volume to /tmp/kafka-logs
- To make image run even after reboot along with storage persistance use extra option --restart=always
$ docker run --restart=always --name=kafka -p 9092:9092 -v /data:/tmp/kafka-logs -td phenompeople/kibana
- Rajesh Jonnalagadda (rajesh.jonnalagadda@phenompeople.com)
License: Apache License
Author : Phenompeople Pvt Ltd (admin.squad@phenompeople.com)