[英]Can I schedule Docker to run on specific time on Amazon ECS?
I want to schedule my docker image to run on a specific time on every day or if the size of a particular folder in my Amazon S3 reached a threshold size? 我想安排我的docker镜像每天在特定时间运行,或者我的Amazon S3中特定文件夹的大小达到阈值大小? Is it possible?
可能吗? (Any of these case)
(任何一种情况)
There's no build in scheduler from AWS to do this. AWS没有内置的调度程序来执行此操作。
Anyway, 无论如何,
you can either run a cronjob on a different machine and use the API to start a task on ECS ( http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html ) 您可以在其他计算机上运行cronjob并使用API在ECS上启动任务( http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html )
or 要么
you can create a Lambda function that runs your task ( http://docs.aws.amazon.com/lambda/latest/dg/with-scheduled-events.html ) 您可以创建运行任务的Lambda函数( http://docs.aws.amazon.com/lambda/latest/dg/with-scheduled-events.html )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.