-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker 版本能配置定时更新的时间? #440
Comments
docker目前默认每日6点与18点自动执行,暂时无法自定义 |
这么快回复,感谢!另外在VPS上跑的话,这个时间是vps时间吗? |
1 similar comment
这么快回复,感谢!另外在VPS上跑的话,这个时间是vps时间吗? |
是的 |
Fixes Guovin#440 Add configuration for scheduled updates in Docker version. * **Dockerfile** - Add `UPDATE_CRON` environment variable to allow custom cron schedules. - Modify the `RUN` command to use the `UPDATE_CRON` variable for setting the cron jobs. * **config/config.ini** - Add a new setting `update_cron` for specifying the cron schedule. * **docs/tutorial.md** - Update the documentation to explain how to configure the update time or interval for the Docker version. * **docs/tutorial_en.md** - Update the documentation to explain how to configure the update time or interval for the Docker version.
我试了一下,自动更新都没有正确执行。会提示8000端口被占用然后就结束了。 |
更新是否成功以文件结果为准,不能只看容器日志。 |
没验证过,但猜测进Docker修改文件“/container/iptv/var/spool/cron/crontabs/root”并执行“/etc/init.d/cron restart”说不定可以,如有需求不妨试试。 |
docker 版本能配置定时更新的时间或间隔吗?还是自动6点和18点定时更新?
The text was updated successfully, but these errors were encountered: