Bootstrap

docker快速安装zookeeper

 一、拉取镜像

docker pull zookeeper:3.9.3

 二、启动zookeeper

docker run --restart=always -d --name zookeeper -p 2181:2181 -v /etc/localtime:/etc/localtime zookeeper:3.9.3

如果需要挂载zookeeper文件及目录,则参数增加:

  -v /mydata/zookeeper/data:/data -v /mydata/zookeeper/conf:/conf -v /mydata/zookeeper/logs:/datalog

;