Docker

Good tool for management : https://portainer.io/

Start

docker container start portainer

local url : portainer

docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=`docker-machine ip \`docker-machine active\`` --env ADVERTISED_PORT=9092 spotify/kafka
 
export KAFKA=`docker-machine ip \`docker-machine active\``:9092
export ZOOKEEPER=`docker-machine ip \`docker-machine active\``:2181
 
./kafka-console-producer.sh --broker-list $KAFKA --topic test
./kafka-console-consumer.sh --zookeeper $ZOOKEEPER --topic test
kb/docker.txt · Last modified: 2018/11/18 05:58 by yehuda
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0