Sign inSign up

uqlibrary/docker-crond

By uqlibrary

•Updated over 5 years ago

Dockerized version of cron

Image
1

2.7K

uqlibrary/docker-crond repository overview

⁠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>
    

Tag summary

Content type

Image

Digest

Size

191.5 MB

Last updated

over 5 years ago

docker pull uqlibrary/docker-crond