Create a folder to store executable files which will launch by crond.
Create executable files with specified prefix filename.
| Period | Prefix | Example |
|---|---|---|
| 1 minute | 1m_ or 1min_ | 1m_hello.sh |
| 5 minutes | 5m_ or 5min_ | 5min_hello.sh |
| 10 minutes | 10m_ or 10min_ | 10m_hello.sh |
| 15 minutes | 15m_ or 15min_ | 15min_hello.sh |
| 30 minutes | 30m_ or 30min_ | 30m_hello.sh |
| 1 hour | 1h_ or 1hour_ | 1h_hello.py |
| 12 hours | 12h_ or 12hour_ | 12hour_hello.py |
| 1 day | 1d_ or 1day_ | 1d_hello.py |
| 1 week | 1w_ or 1week_ | 1week_hello.py |
| 1 month | 1M_ or 1month_ | 1M_hello.py |
docker run -d --name cron -v /path/to/folder:/usr/local/cron minimum/cron:py3
If you want to quickly execute all files when container launched, you can run
docker run -d --name cron -v /path/to/folder:/usr/local/cron minimum/cron:py3 -f
Content type
Image
Digest
Size
19.5 MB
Last updated
over 8 years ago
docker pull minimum/cron:py3