title: laravel 8 sail, cron not running automatically
body: <p>I am using laravel 8 sail, and I want to run a task repeatedly, but seems schedule task not getting called.</p>
  <p>I have installed crontab</p>
  <pre><code>RUN apt-get update &amp;&amp; apt-get install -y cron
  COPY crontab /etc/cron.d/crontab
  RUN chmod 0644 /etc/cron.d/crontab \
      &amp;&amp; crontab /etc/cron.d/crontab \
      &amp;&amp; touch /var/log/cron.log
  </code></pre>
  <p>and created crontab file</p>
  <pre><code>* * * * * cd /var/www/html &amp;&amp; php artisan schedule:run --no-ansi &gt;&gt; /var/log/cron.log 2&gt;&amp;1
  # Don't remove the empty line at the end of this file. It is required to run the cron job
  </code></pre>
  <p>And inside Kernel.php</p>
  <pre><code>protected function schedule(Schedule $schedule)
  {
     $schedule-&gt;command('inspire')-&gt;everyMinute();
  
     $schedule-&gt;call(function () {
        DB::table('products')-&gt;delete();
     })-&gt;everyMinute();
  
  }
  </code></pre>
  <p>Normally after every minute it should run inspire command and delete products table, but nothing happen.</p>
  <p>note: When I get inside the docker instance and run 'cd /var/www/html &amp;&amp; php artisan schedule:run --no-ansi &gt;&gt; /var/log/cron.log 2&gt;&amp;1' it works fine but automatically not.</p>