Skip to content
ActiveStatePublic

About

Schedule your 'docker run's without having to install cron on the host

Resources

Security policy

Stars

29 stars

Watchers

45 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dockron

dockron allows you to schedule your 'docker run's.

Example

# Create a convenient alias:
$ alias dockron="docker run --rm \
       -v $(which docker):/usr/bin/docker:ro \
       -v /var/run/docker.sock:/var/run/docker.sock \
       activestate/dockron"

# Invoke your favourite container periodically (here, every minute):
$ dockron "0 * * * *" docker run ubuntu /bin/bash -c "echo Hello world"
...

The first argument is the crontab-formatted repeat schedule. Rest of the arguments should specify the entire 'docker run' command-line.

Logging

The dockron container will log appropriately such that you may setup log triggers to get notified if a command fails to run. This is especially useful when you are managing containers using Papertrail and logspout, and as such demonstrates the reason for using dockron instead of crontab on the docker host; the scheduler is no different from that which it schedules, as all of them are docker containers, and managed in the same way.

About

Schedule your 'docker run's without having to install cron on the host

Resources

Security policy

Stars

29 stars

Watchers

45 watching

Forks

Releases

Packages

Contributors

Languages