Skip to content

Instantly share code, notes, and snippets.

@allanlei
Last active January 7, 2019 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allanlei/d6679848be1e08a6039c86f1b4b6500c to your computer and use it in GitHub Desktop.
Save allanlei/d6679848be1e08a6039c86f1b4b6500c to your computer and use it in GitHub Desktop.
Running cron in Docker via mounted volume
docker run -it --rm -v tasks.cron:/tasks.cron alpine:3.5 sh -c "crontab /tasks.cron && crond -f -L /dev/stdout"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment