1. Install image
docker pull zookeeper:3.6.2
2. Start ZK
docker run --privileged=true -d --name zookeeper -p 2181:2181 \ -v /home/workspace/zookeeper/data:/data \ -v /home/workspace/zookeeper/logs:/datalog \ -d zookeeper:3.6.2
3. Go to ZK image summary
docker exec -it zookeeper /bin/bash
3. View ZK log
docker logs -f zookeeper
4. Validation and FAQs
Refer to my last article:
https://blog.csdn.net/qq_ 42390636/article/details/114986157