This repository contains a Dockerfile of Crond (Cronie) for Docker's automated build published to the public Docker Hub Registry.
(Replace "TAG" with the most recent tagged release image)
Install Docker.
Download the automated build from the public Docker Hub Registry:
docker pull uqlibrary/docker-crond:TAG
(or, you can build an image from Dockerfile: docker build -t uqlibrary/docker-crond:TAG .)
Create a cron.d directory and place your own crontab file(s) inside it (ensure that ownership is root:root and file permissions are 644)
mkdir cron.d
vi ./cron.d/mytestjob
sudo chmod -R g-w ./cron.d
sudo chown -R root:root ./cron.d
Start the container (with custom crontab included via volume mount):
docker run -d -v ./cron.d:/etc/cron.d uqlibrary/docker-crond:TAG
All job outputs that would normally go to email is being caught by debug output and will be in docker logs
docker logs -f <container>
Content type
Image
Digest
Size
191.5 MB
Last updated
over 5 years ago
docker pull uqlibrary/docker-crond