As mentioned on the fat cron container for Docker page, there is no real equivalent for a cron-like mechanism that would make sense in the Docker or Docker swarm world, such that some software like cronicle seems to be the best replacement. However, whilst the original Dockerfile from Su Yang is just for the barebones "cronicle" software, the Dockerfile provided on this page is a re-write in order to use Debian as the base image, which allows adding the software that is necessary to run various tasks.
Checkout the source from the Subversion repository by issuing:
svn co https://svn.grimore.org/docker/build/cronicle
Change into the downloaded cronicle
directory and execute:
docker build -t myregistry:5000/cronicle:latest .
where:
myregistry:5000
is the server name and port of a private registryAfter the image has finished building, the image can be pushed onto the registry:
docker push myregistry:5000/cronicle:latest
The final step is to run the container and for that a compose file is provided.