title: Best Practices for Cron on Docker
body: <p>I've transitioned to using docker with cron for some time but I'm not sure my setup is optimal.  I have one cron container that runs about 12 different scripts.  I can edit the schedule of the scripts but in order to deploy a new version of the software running (some scripts which run for about 1/2 day) I have to create a new container to run some of the scripts while others finish.  </p>
  
  <p>I'm considering either running one container per script (the containers will share everything in the image but the crontab).  But this will still make it hard to coordinate updates to multiple containers sharing some of the same code.  </p>
  
  <p>The other alternative I'm considering is running cron on the host machine and each command would be a <code>docker run</code> command.  Doing this would let me update the next run image by using an environment variable in the <code>crontab</code>.  </p>
  
  <p>Does anybody have any experience with either of these two solutions?  Are there any other solutions that could help?  </p>