title: How to setup zookeeper cluster on docker swarm
body: <p><strong>Environment</strong> : 6 server docker swarm cluster (2 master &amp; 4 workers)</p>
  
  <p><strong>Requirement</strong> : We need to setup a zookeeper cluster on existing docker swarm.</p>
  
  <p><strong>Blocked on</strong> : To setup zookeeper in cluster, we need to provide all zk servers in each server config and provide unique ID in myid file. </p>
  
  <p><strong>Question</strong> : When we create a replica of zookeeper in docker swarm, how can we provide unique ID for each replica. Also how can we update zoo.cfg config file with ID of each zookeeper container.</p>