Public | Automated Build

Last pushed: 3 months ago
Short Description
Easily use cron inside docker container with cloud foundry cli.
Full Description


Extends with cloud foundry cli ( and statistics plugin (

Use Cron inside Docker. Looks for crontab at /cron/crontab

Note: Does not use actual cron binary, as there are issues running it inside Docker.
Uses devcron instead.


This example mounts the folder containing your crontab file. Presumably you would
put your scripts in the same file and reference them in your crontab as /cron/

$ docker run -v /host/folder/containing/crontab:/cron -d lakermann/docker-cron-cf

This example mounts two folders, one with the crontab and one with the scripts. You need
to use /scripts/ in your crontab

$ docker run -v /host/folder/containing/crontab:/cron -v /host/folder/scripts:/scripts -d lakermann/docker-cron-cf

Add cloud foundry login to /scripts/

cf login -a
Docker Pull Command
Source Repository