1, if streamlined apline or debian: docker stretch-slim created, there may be no cron module requires a separate installation
apt-get install -y cron
2, docker inside without running cron
See: https: //www.cnblogs.com/agang-php/p/10175398.html
Note need to note off line, and restart the cron service:
sed -i 's/sessions\s*required\s*pam_loginuid\.so/#session required pam_loginuid\.so/g' /etc/pam.d/cron
/etc/init.d/cron restart