This is a docker image that has been optimized to run reliably on memory constrained Raspberry Pi's such as the Zero W.
Zookeeper is a distributed coordinator and configuration management system and is a required dependency for software such as Apache Kafka.
Create a directory called zk on the host and two subdirectories inside it named data and config repectively. These will contain the setup and configuration data and the running container will have it's zookeeper config directories mapped to these.
Run the image:
docker run -it --restart always -p 2181:2181 -p 2888:2888 -p 3888:3888 -v ~/zk/data:/zk/data -v ~/zk/conf:/zk/conf icemanaf/rpi-alpine-zk
Put the myid file in the data folder. This is essential in a multi broker zookeeper ensemble.