Sign inSign up

loeffelhardt/cron

By loeffelhardt

•Updated 8 months ago

Image
0

1.6K

loeffelhardt/cron repository overview

⁠el-cron

⁠1. Provide cronjob file from template

cp cronjob.template cronjob

⁠2. Edit cronjob file based on your needs

Example cronjob: * * * * * echo "Cron is running!"
This will run the command every minute.

⁠Cron Syntax

⁠3. Build the Docker image using the Dockerfile

docker build -t el-cron .

⁠4. Run the Docker container

--privileged flag to allow the cron daemon to run
docker run -d --rm --privileged --name el-cron el-cron

⁠Show logs

docker logs el-cron

Tag summary

Content type

Image

Digest

sha256:dc13f4c3a…

Size

3.7 MB

Last updated

8 months ago

docker pull loeffelhardt/cron