Skip to content
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

怎么设置每日定时推送 #7

Open
Testplayers opened this issue Jan 16, 2022 · 5 comments
Open

怎么设置每日定时推送 #7

Testplayers opened this issue Jan 16, 2022 · 5 comments

Comments

@Testplayers
Copy link

No description provided.

@zhulxsz
Copy link

zhulxsz commented Jan 25, 2022

安装docker版本,然后搞一个定时脚本。我就是这么搞的

@lianzheduohuanxi
Copy link

怎么搞的

@molanjingke
Copy link

就是常见的linux docker运行操作,简单把群晖/威联通/Linux都当成linux,通过命令行ssh登陆。
然后按照教程里面的运行方式先成功运行docker容器,
最后,参考crontab的指令方式,定时启动脚本即可。
这里附上qnap的方式,群晖和常规linux操作系统可参考其它教程。
https://einverne.github.io/post/2018/06/qnap-crontab.html

@jamesbondjava
Copy link

不是很方便,docker下作者选用的是alpine linux ,添加定时任务非常不方便,尝试了很久没有解决问题。

@molanjingke
Copy link

molanjingke commented Nov 8, 2022

#7 (comment)
不要尝试在docker容器内部设置定时脚本,可以通过crontab在外部设置定时任务。如:
50 13 * * * docker start Container_Name -i

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants