Run kafka in docker container


docker and docker-compose installation if needed


$ cd ~/tmp

// Docker script from video course Linux Academy Apache Kafka Deep Dive
$ git clone https://github.com/wildmakaka/kafka-docker
$ cd kafka-docker/


$ docker-compose up

// or
$ docker-compose up -d --build


$ telnet localhost 2181
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
srvr
Zookeeper version: 3.4.9-1757313, built on 08/23/2016 06:50 GMT
Latency min/avg/max: 0/10/28
Received: 34
Sent: 33
Connections: 1
Outstanding: 0
Zxid: 0x200000039
Mode: follower
Node count: 37
Connection closed by foreign host.


$ telnet localhost 9092
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.


https://github.com/redpanda-data/console


// RedPanda - Web UI client for Kafka
$ docker run --network=host -p 8080:8080 -e KAFKA_BROKERS=localhost:9092 docker.redpanda.com/redpandadata/console:latest