title: docker - in production - HA
body: <p>how to run docker in production, with a active/active or active/standby HA system?
  are there any guides or best practices?</p>
  
  <p>i am thinking of 3 scenarios:</p>
  
  <p>1) NFS - for two servers - wich are prepped with <code>docker-machine</code> and mounting a shared NFS to <code>/var/lib/docker/</code> - so both docker nodes should see the same files. (using some sort of filer, like vnx, efs, and so on.)</p>
  
  <p>2) using DRBD to replicate a disk - and mount it to: <code>/var/lib/docker/</code> - so data is on both nodes, and the active node can mount it and run containers, in case of failover the other node mounts and starts the containers</p>
  
  <p>3) using DRBD - as above - and export a NFS server, mounting the NFS on both nodes to : <code>/var/lib/docker/</code>  - so as above both nodes can mount and run containers, using Heartbeat/Pacemaker to travel the virtual-IP &amp; DRBD switching</p>
  
  <p>what is the best practice on running docker-containers in production to make them high availaible.</p>
  
  <p>regards</p>