docker-compose-files/zookeeper/Makefile

24 lines
430 B
Makefile
Raw Normal View History

2020-02-13 02:30:08 +08:00
download:
2020-02-28 06:39:59 +08:00
docker pull yeasy/zookeeper:latest
2020-02-13 02:30:08 +08:00
start:
2020-02-28 06:39:59 +08:00
# for swarm service mode
2020-02-13 02:30:08 +08:00
docker stack deploy --compose-file docker-compose.yaml zk
2020-02-28 06:39:59 +08:00
#docker-compose up
2020-02-13 02:30:08 +08:00
stop:
2020-02-28 06:39:59 +08:00
# for swarm service mode
2020-02-13 02:30:08 +08:00
docker stack rm zk
2020-02-28 06:39:59 +08:00
#docker-compose down
2020-02-13 02:30:08 +08:00
restart: stop start
zookeeper:
docker exec -it zookeeper1 bash
cli:
docker exec -it cli bash
2020-02-28 06:39:59 +08:00
test:
docker exec -it cli bash -c 'bash /opt/zookeeper/bin/zkCli.sh -server zk_zookeeper1:2181'