文章 16
评论 3
浏览 252551
日常记录

日常记录

1、进入docker容器执行python脚本 每天定时执行
(1)将需要定时执行的操作

docker exec python3 /path/xx.py
注:这里不能使用交互式-it方式进入容器 否则定时任务无法执行

(2)定时任务

0 8,11,17,20 * * * /opt/shell/z.sh
动态签名档

© 2024皖ICP备2024033306号

Designed with by 02Rider

加载中...

All of us will be better

取消