Docker 部署 zookeeper
拉取ZooKeeper镜像最新版本
docker pull zookeeper:latest
创建数据卷
mkdir -p ./zookeeper/data
mkdir -p ./zookeeper/conf
mkdir -p ./zookeeper/logs
运行容器
docker run -d --name lcloud-zookeeper --privileged=true -p 2181:2181 --restart=always -v ./zookeeper/data:/data -v ./zookeeper/logs:/datalog zookeeper:latest
标签:logs,部署,zookeeper,mkdir,--,Docker,data From: https://www.cnblogs.com/liuzonglin/p/17724218.html