docker不能正常使用cron任务

基于centos7的docker不能正常使用cron任务问题

修改docker centos7镜像对应的容器的/etc/pam.d/crond文件

把required 修改成sufficient,如下:

account    sufficient   pam_access.so
account    include    system-auth
session    sufficient   pam_loginuid.so
session    include    system-auth
auth       include    system-auth
原文地址:https://www.cnblogs.com/yjt1993/p/12011697.html