laravel - Crond 错误 - 无法设置组:不允许操作
问题描述
我正在尝试在我的 Docker 映像上设置 Laravel 调度程序。
在我的末尾,我.Dockerfile
添加了以下内容;
COPY ./mod-docker/crontab /etc/crontabs/root
CMD ["crond", "-f", "-d", "8"]
在我的crontab
文件中,我有这个;
* * * * * cd /var/www/html && php artisan schedule:run >> /dev/null 2>&1
但现在在构建时,我得到以下输出;
app_1 | crond: can't set groups: Operation not permitted
app_1 | crond: USER root pid 7 cmd cd /var/www/html && php artisan schedule:run >> /dev/null 2>&1
app_1 | crond: can't set groups: Operation not permitted
谁能指点我。在正确的方向上解决这个问题?
提前致谢。
解决方案
推荐阅读
- javascript - 用视频代替
- c++ - 派生类指针使用 Static_Cast 指向基类对象
- d3.js - d3 mouseover tip.show 现在在函数中工作(a,b,c)
- node.js - child_process 未在 ec2 nodejs 服务器上执行
- ios - 如果我在 uicollection 视图的最后一页,如何转到下一个视图控制器。它的水平转换和分页启用
- xml - ejabberd 在错误的 XML 消息上断开连接
- javascript - 如何将滚动类添加到元素并在完成后将其删除
- batch-file - 目标主机不可达不会导致错误级别 1
- wordpress - .htaccess 权限和 Apache 重启 | Bitnami WordPress | Kubernetes
- java - 如何在 Swing 应用程序中使用 Java 获取 macOS Mojave 风格的暗模式?