racknerd洛杉矶cdn登陆不上

登陆不上docker-compose部署Kafka集群
由于Kafka需要Zookeeper,洛杉矶直接登陆不上docker命令行来操作,那也是racknerd麻烦事,所以我采用了docker-compose来实现。  先将镜像pull下来:
# Zookeeper
sudo docker pull wurstmeister/zookeeper
# Kafka
sudo docker pull wurstmeister/kafka
1234
然后cdnracknerd空目录,cdnracknerd docker-compose.yml ,洛杉矶只启动单节点,那么 docker-compose.yml 内容如下
version: ‘3’
services:
zookeeper:
image: zookeeper:3.5.8
ports:
– “2181:2181”
kafka:
image: wurstmeister/kafka
depends_on: [ zookeeper ]
ports:
– “9092”:”9092″
environment:
KAFKA_ADVERTISED_HOST_NAME: 192.168.12.12
KAFKA_CREATE_TOPICS: “test:1:1”
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
– /data/product/zj_bigdata/data/kafka/docker.sock:/var/run/docker.sock

123456789101112131415161718