使用docker-compose可以很快速地搭建zookeeper集群。zookeeper.ymlversion: '3.1' networks: docker_net: services: zoo1: image: zookeeper restart: always hostname: zoo1 container_name: zoo1 ...