Docker装一切

时间:Oct. 27, 2021 分类:

目录:

zookeeper

docker run -d --name zookeeper -p 2181:2181 -t wurstmeister/zookeeper

kafka

docker run -d --name kafka --network host --env KAFKA_ZOOKEEPER_CONNECT=10.210.40.103:2181 --env KAFKA_ADVERTISED_HOST_NAME=10.210.40.103 --env KAFKA_ADVERTISED_PORT=9092  wurstmeister/kafka:latest