Public | Automated Build

Last pushed: 6 months ago
Short Description
Dockerized version of cron
Full Description

docker-crond

This repository contains a Dockerfile of Crond (Cronie) for Docker's automated build published to the public Docker Hub Registry.

Installation

(Replace "TAG" with the most recent tagged release image)

  1. Install Docker.

  2. 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 .)

Usage

  1. 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
    
  2. Start the container (with custom crontab included via volume mount):

    docker run -d -v ./cron.d:/etc/cron.d uqlibrary/docker-crond:TAG
    
  3. 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>
    
Docker Pull Command
Owner
uqlibrary
Source Repository

Comments (0)