Skip to content

Instantly share code, notes, and snippets.

@docteurklein
Created March 1, 2017 13:02
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 docteurklein/1815bdd73d698940178c1f734853310a to your computer and use it in GitHub Desktop.
Save docteurklein/1815bdd73d698940178c1f734853310a to your computer and use it in GitHub Desktop.
10 0 * * * docker run my_container some-command
FROM alpine:edge
RUN apk add --no-cache docker
ENTRYPOINT ["/usr/sbin/crond", "-f", "-d", "8"]
COPY crontab /crontab
RUN crontab /crontab
@docteurklein
Copy link
Author

cron:
    build: docker/cron
    volumes:
        - '/var/run/docker.sock:/var/run/docker.sock'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment