Cron is not running from docker container... failed
Solution 1:
You were close, here is the modified Dockerfile that does not give the error and starts cron:
FROM python:3.6.9
# Add crontab file in the cron directory
ADD crontab /etc/cron.d/hello-cron
# Give execution rights on the cron job
RUN chmod 0644 /etc/cron.d/hello-cron
#Install Cron
RUN apt-get update
RUN apt-get -y install cron
# Create the log file to be able to run tail
RUN touch /var/log/cron.log
# Run the command on container startup
CMD /etc/init.d/cron start && tail -f /var/log/cron.log
Having said that this Dockerfile is fine if you testing water. However, to run things in production you may want to look into how services are bundled within docker images (use exec etc)