mirror of
https://github.com/containrrr/watchtower.git
synced 2026-01-03 15:48:49 +01:00
Adding new runtime param delay-days that is used to control whether container is updated to new image immediately or wait until the indicated days have passed
This commit is contained in:
parent
0a14f3aa9c
commit
a8279b47fe
5 changed files with 59 additions and 4 deletions
|
|
@ -147,6 +147,12 @@ func RegisterSystemFlags(rootCmd *cobra.Command) {
|
|||
envBool("WATCHTOWER_LIFECYCLE_HOOKS"),
|
||||
"Enable the execution of commands triggered by pre- and post-update lifecycle hooks")
|
||||
|
||||
flags.IntP(
|
||||
"delay-days",
|
||||
"0",
|
||||
envInt("WATCHTOWER_DELAY_DAYS"),
|
||||
"Number of days to wait for new image version to be in place prior to installing it")
|
||||
|
||||
flags.BoolP(
|
||||
"rolling-restart",
|
||||
"",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue