See cron output via docker logs, without using an extra file : <p>I am running "cron" in a docker container. <br>
Every day a script is executed. <br>
The output of this script I would like to see via "docker logs " <br></p>

<p>The process with PID 0 is the cron daemon in my container. Entrypoint starts cron in foreground:</p>

<pre><code>/usr/sbin/crond -f 
</code></pre>

<p>I understand, that I could redirect the script output to a file "path/to/logs"</p>

<pre><code>07 2 * * * /data/docker/backup_webserver/backupscript.sh &gt;&gt; path/to/logs
</code></pre>

<p>and start the container as following to see the logs</p>

<pre><code>"tail -f path/to/logs" 
</code></pre>

<p>But then the file "path/to/logs" would grow during the runtime of the container. <br>
<strong>Is there a possibility to log from crontab, directly to "docker logs" ?</strong></p>
