docker安装redis
docker pull redis
docker images
docker run -ti --name docker-redis -p6379:6379 -idt redis:latest
docker logs -f docker-redis
docker ps
docker exec -it docker-redis /bin/bash
docker rm
docker rm -i
docker安装zookeeper
docker pull wurstmeister/zookeeper
docker images
docker run -ti --name docker-zookeeper -p2181:2181 -idt wurstmeister/zookeeper:latest
docker安装kafaka
docker pull wurstmeister/kafka
docker images
docker run --name docker-kafka -e HOST_IP=localhost -e KAFKA_ADVERTISED_PORT=9092 -e KAFKA_BROKER_ID=1 -e KAFKA_ZOOKEEPER_CONNECT=docker-zookeeper:2181 -e KAFKA_ADVERTISED_HOST_NAME=172.10.0.4 -e ZK=zk -p 9092 --link docker-zookeeper:zk -tdi wurstmeister/kafka