Skip to content

Customized Scheduling

gmt2001 edited this page Mar 6, 2022 · 5 revisions

Scheduling

Ouroboros supports --interval and --cron internally.

You can also schedule Ouroboros to run using built-in Linux system schedulers.

Example using ouroboros to update containers every Monday at 5AM:

Docker

* 5 * * 1 docker run --rm -d --name ouroboros -v /var/run/docker.sock:/var/run/docker.sock gmt2001/ouroboros --interval 1 --run-once

Pip installed CLI

* 5 * * 1 ouroboros --interval 1 --run-once

Using the --run-once arg tells ouroboros to make one pass updating all/specified containers and then exit.

Clone this wiki locally