Run on start and schedule #1975
Unanswered
rodrigost23
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Has anyone figured out a way to achieve this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know there is
--run-once
, but using this flag, the container exits afterwards. Using only--interval 86400
makes it wait for 24 hours for the first check.Is there a way to use
--interval
or--schedule
but do the first check right away? The problem is that my server is not always turned on, and all services arerestart: unless-stopped
in docker-compose, so when watchtower starts, it always schedules for the next day (23 hours, 59 minutes, 59 seconds).Beta Was this translation helpful? Give feedback.
All reactions