title: Cron job not auto runs inside a Docker container
body: <p>I have a LAMP container with supervisor.</p>
  <p>I add a simple cron</p>
  <pre><code>* * * * * root /bin/date &gt;&gt; /var/log/cron.log
  </code></pre>
  <p>from my Dockerfile</p>
  <pre><code>ADD ./crons/test /etc/cron.d/test
  RUN chmod 0777 /etc/cron.d/test
  </code></pre>
  <p>I start cron via supervisor with a <code>supervisor-cron.conf</code> like this:</p>
  <pre><code>[program:cron]
  command=/bin/bash -c &quot;cron -f&quot;
  numprocs=1
  autostart=true
  autorestart=true
  startretries=2
  </code></pre>
  <p>Cron starts fine and stays up and running. The strange thing is that no cronjob is running automatically [as it should] but when I execute <code>docker exec lamp crontab /etc/cron.d/test</code> the cron job starts and works as expected.</p>
  <p>Am I missing something? Everywhere I have read that cron jobs are executed automatically by cron.</p>