-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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容器里面用命令行重新配置。 |
potplayer无法使用 |
请不要询问无关非本问题的情况,该情况已经在配置项和已存在的问题讨论解答。 |
其实想要解决这个问题也很简单,在宿主机设置定时任务,任务命令就是重启在这个docker容器的命令,应为每次容器启动都会自动执行一次更新直播源,我就是通过这个方式控制这个服务按自己希望时间进行更新. |
docker 版本能配置定时更新的时间或间隔吗?还是自动6点和18点定时更新?
The text was updated successfully, but these errors were encountered: