title: Zookeeper docker container stuck
body: <p>We've been using zookeeper as part of our Kafka deployment and for other usages as well (via docker-compose).</p>
  
  <p>Occassionally the docker image would stop to function, to the point where <code>docker stop zookeeper</code> would not return (zk would keep running).
  Also <code>docker kill -s SIGTERM</code> would not kill it.</p>
  
  <p>when that happens, attempts to run zkCli from within the container also halt (the zkCli.sh command doesn't return).</p>
  
  <p>Only killing the docker service (on Mac the docker app) would allow to recover it - but only after deletion of the container while zk is still down.</p>
  
  <p>Any idea how to troubleshoot this?
  What could cause such scenario?</p>