title: Solution for running scheduled cron job within a Docker container?
body: <p>I have a Docker container in which I have my Python tools installed, including my Luigi pipeline interface. I would like to run a shell script which kicks off my Luigi pipeline on a weekly basis using cron.</p>
  
  <p>I have tried high and low to get cron to work within a Docker container. I cannot, for the life of me, get my crontab -e file to run.</p>
  
  <p>In my file I have:</p>
  
  <p><code>0 0 * * Sun /data/myscript.sh</code></p>
  
  <p>followed by a new line. Cron is running in the background - <code>ps aux | grep cron</code> shows <code>/usr/sbin/cron</code> is running. Furthermore, in my <code>/var/log/syslog</code> file, I have:</p>
  
  <p><code>/USR/SBIN/CRON[2037]: (root) CMD (/data/myscript.sh)</code></p>
  
  <p>I've also tried using <code>0 0 * * Sun . /root/.bashrc ; sh /data/myscript.sh</code></p>
  
  <p>However, my script does not run (when I run my script manually using <code>bash myscript.sh</code>, I get the expected results).</p>
  
  <p>Suggestions?</p>