docker exec -it container_name cmd
yum install cron -y
# 查找cron配置文件位置
find / -name crond
vim /etc/pam.d/crond
注释配置文件中的pam_loginuid.so所在行
account required pam_access.so
account include system-auth
# session required pam_loginuid.so
session include system-auth
auth include system-auth
启动crond服务
crond