--link必须要有,否则不好用
sudo docker run -d
--name kafka -p 9092:9092
--link zookeeper:zookeeper
-e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://192.168.1.85:9092
-e KAFKA_ADVERTISED_HOST_NAME=192.168.1.85
-e KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
-e KAFKA_ADVERTISED_PORT=9092
-e KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092
-v /etc/localtime:/etc/localtime
-v /kafka/logs:/kafka
--restart always
wyh1791/kafka-arm64v8
docker run -d --name kafka-manager
--link zookeeper:zookeeper
--link kafka:kafka
-p 9000:9000
--restart=always
-e ZK_HOSTS=zookeeper:2181
wyh1791/kafka-manager-arm64v8:v2