{"id":16495408,"url":"https://github.com/lorenzck/docker-crontaimer","last_synced_at":"2026-05-11T08:42:12.877Z","repository":{"id":98088113,"uuid":"167558386","full_name":"LorenzCK/docker-crontaimer","owner":"LorenzCK","description":"Simple docker image that executes cron jobs. 🐳⏲","archived":false,"fork":false,"pushed_at":"2019-01-26T15:30:14.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T01:14:51.613Z","etag":null,"topics":["cron","cronjobs","docker","docker-image","dockerfile"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LorenzCK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-25T14:16:00.000Z","updated_at":"2019-01-26T15:30:16.000Z","dependencies_parsed_at":"2023-05-23T15:00:25.463Z","dependency_job_id":null,"html_url":"https://github.com/LorenzCK/docker-crontaimer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LorenzCK%2Fdocker-crontaimer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LorenzCK%2Fdocker-crontaimer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LorenzCK%2Fdocker-crontaimer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LorenzCK%2Fdocker-crontaimer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LorenzCK","download_url":"https://codeload.github.com/LorenzCK/docker-crontaimer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241355670,"owners_count":19949402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cron","cronjobs","docker","docker-image","dockerfile"],"created_at":"2024-10-11T14:29:31.774Z","updated_at":"2026-05-11T08:42:12.848Z","avatar_url":"https://github.com/LorenzCK.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker CronTaimer\n\n![Docker Hub pulls](https://img.shields.io/docker/pulls/lorenzck/crontaimer.svg)\n\nBasic Docker image that executes cron jobs for you.\n\nLightweight image based on **Alpine:3.8** that runs the cron daemon in foreground.\nCrontab file can be built into your image or mounted as a volume.\n\nDocker, docker-compose, make and bash are included, allowing you to run scripts or interact with your containers in response to your cron jobs.\n\n## Usage\n\nThe basic image includes a basic cron jobs file that prints out “Hello world!” every minute.\nFor instance:\n\n```\n~$ docker run --rm lorenzck/crontaimer\ncrond: crond (busybox 1.28.4) started, log level 8\nHello world!\ncrond: USER root pid   6 cmd echo \"Hello world!\"\n```\n\nCopy your crontab specification onto `/etc/crontabs/root` to set the jobs you need.\nThe simplest `Dockerfile` can be as follows:\n\n```\nFROM lorenzck/crontaimer:latest\nCOPY mycronjobs /etc/crontabs/root\n```\n\nA suggested docker-compose configuration might look like this:\n\n```yml\nversion: '3'\n\nservices:\n  timer:\n    build: path-to-dockerfile\n    volumes:\n    - /var/run/docker.sock:/var/run/docker.sock:rw\n    restart: unless-stopped\n```\n\nMounting the Docker socket as a read/write volume allows you to operate on Docker containers from your cron jobs.\n\nYou may also choose to mount the directory containing your `docker-compose.yml` or `Makefile`, in order to use it from the `crontaimer` container to perform more complex tasks.\n\n## Notes\n\n* The image is configured to run jobs in UTC time.\n  Add `TZ=UTC` at the top of your crontab file (see [the default cronjobs file](https://github.com/LorenzCK/docker-crontaimer/blob/master/cronjobs)) in order to ensure that your jobs also work in the same timezone.\n* Crontab files must end with a newline character.\n* Add `2\u003e\u00261` to your cron job command to ensure that `stderr` is also redirected to the logs of your container.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florenzck%2Fdocker-crontaimer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florenzck%2Fdocker-crontaimer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florenzck%2Fdocker-crontaimer/lists"}