/docker-cron

minimal crontab container

Primary LanguageDockerfile

docker-cron

minimal crontab container

Trueosiris Rules Docker Pulls Docker Stars Docker Image Size Github stars Github forks Github issues Github last-commit

docker run -d \
-v /path/on/host/croncontainer/crond.d:/etc/crond.d \
-v /var/run/docker.sock:/var/run/docker.sock \
trueosiris/cron

A base folder structure will be created in volume crond.d
example tree of /path/on/host/croncontainer/crond.d/

├── 15min
│   └── echo_date.sh
├── daily
├── hourly
├── min
├── monthly
└── weekly

content of echo_date.sh

#!/bin/sh
date

PS: /bin/bash is not installed.