Repository navigation
Releases: lukaskaplan/docker_scheduler
Releases · lukaskaplan/docker_scheduler
Release list
v1.2
What's new in v1.2
✨ New feature
- Optional
userlabel — run a scheduled job as a specific user inside the target container (likedocker exec --user). Addscheduler.<job>.user: "www-data"alongside the job'sscheduleandcommand; when omitted, the container's default user is used. (#3)
🐛 Bug fixes
- Event watcher fixed for modern Docker — the container ID is now read from
Actor.IDinstead of the legacy top-levelidfield that recent Docker releases no longer emit. Previously, container start/stop/update events were silently ignored (new containers weren't picked up and jobs kept firing for stopped containers); live label re-evaluation works again. (#4) - Hardened event parsing so an event without an
Actorfield can no longer crash the watcher thread. (#4)
🙏 Thanks
Both changes were contributed by @onavas33.
Full changelog: v1.1...v1.2
v1.1
Changes:
- Remote Docker host support — replaced hardcoded
unix://var/run/docker.sockwithdocker.from_env(), which readsDOCKER_HOST,DOCKER_TLS_VERIFYandDOCKER_CERT_PATHenvironment variables automatically. Local socket remains the default whenDOCKER_HOSTis not set. - Python 3.14 — updated Dockerfile base image to Python 3.14.
Bug fixes:
- fixed crash in
watch_eventswhen a Docker event had no container id field (TypeError: 'NoneType' object is not subscriptable).