Last active
January 7, 2019 16:26
-
-
Save allanlei/d6679848be1e08a6039c86f1b4b6500c to your computer and use it in GitHub Desktop.
Running cron in Docker via mounted volume
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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