Skip to content

11notes/docker-cron

Repository files navigation

banner

⛰️ cron

sizeversionpulls

rootless cron scheduler with cmd-socket command

MAIN TAGS 🏷️

These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.

SYNOPSIS 📖

What can I do with this? This image will give you the ability to execute cron jobs in a complete rootless environment. It also contains the cmd command to execute commands inside other images that use the cmd-socket binary.

COMPOSE ✂️

name: "cron"
services:
  cron:
    image: "11notes/cron:4.6"
    container_name: "cron"
    environment:
      TZ: "Europe/Zurich"
      CRONTAB: |-
        * * * * * eleven log info "I run every minute" > /proc/1/fd/1
        0 3 * * * cmd /run/cmd/.sock backup > /proc/1/fd/1
    restart: "always"

DEFAULT SETTINGS 🗃️

Parameter Value Description
user docker user name
uid 1000 user identifier
gid 1000 group identifier
home /cron home directory of user docker

ENVIRONMENT 📝

Parameter Value Default
TZ Time Zone
DEBUG Will activate debug option for container image and app (if available)

SOURCE 💾

PARENT IMAGE 🏛️

BUILT WITH 🧰

GENERAL TIPS 📌

  • Use a reverse proxy like Traefik, Nginx, HAproxy to terminate TLS and to protect your endpoints
  • Use Let’s Encrypt DNS-01 challenge to obtain valid SSL certificates for your services

ElevenNotes™️

This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the releases for breaking changes. If you have any problems with using this image simply raise an issue, thanks. If you have a question or inputs please create a new discussion instead of an issue. You can find all my other repositories on github.

created 12.3.2025, 08:52:45 (CET)

About

rootless cron scheduler with cmd-socket command

Resources

License

Stars

Watchers

Forks

Packages

No packages published