Last active
January 7, 2019 16:26
-
-
Save allanlei/c900794b82cfd8e405e5fb61192055c2 to your computer and use it in GitHub Desktop.
Running cron in Docker via command
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 alpine sh -c "echo \"* * * * * echo hello\" | crontab - && crond -f -L /dev/stdout" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment