A simple image that includes crond and common tools required by shell scripts.
393
cron-utils is a simple image that includes common tools required by shell scripts. It runs crond on start up so that you can schedule shell script jobs to run periodically.
The tools included are: wge, curl, snmp, snmp-mibs-downloader, jq, libxml2-utils, rsync, openssh-client
Use volumes to map crontab config files and periodic script folders to a spot on your filesystem where you'll provide scripts to be run by cron. The image comes with a user named 'butler' who you can use to execute tasks at a lower privilege. You can can specify the userid and groupid of the butler user by populating the PUID and PGID environment variables respectively.
services:
cron-utils:
image: dotb/cron-utils:latest
container_name: cron-utils
environment:
PUID: "2000" # User id for the 'butler' user
PGID: "2000" # Group id for the 'butler' group
volumes:
- /mnt/local/cron-utils/crontab:/etc/crontab
- /mnt/local/cron-utils/cron.daily:/etc/cron.daily
- /mnt/local/cron-utils/cron.weekly:/etc/cron.weekly
- /mnt/local/cron-utils/cron.monthly:/etc/cron.monthly
restart: always
Content type
Image
Digest
sha256:2b3786140…
Size
96.6 MB
Last updated
over 1 year ago
docker pull dotb/cron-utils