docker points in the run cron notes

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

 

 

Guess you like

Origin www.cnblogs.com/d9394/p/12020678.html