Add WATCHTOWER_INCLUDE_RESTARTING env for include-restarting flag (#720)

pull/757/head
ilike2burnthing 4 years ago committed by GitHub
parent 352574d387
commit e230967196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -118,6 +118,16 @@ Environment Variable: DOCKER_API_VERSION
Default: "1.24" Default: "1.24"
``` ```
## Include restarting
Will also include created and exited containers.
```
Argument: --include-restarting
Environment Variable: WATCHTOWER_INCLUDE_RESTARTING
Type: Boolean
Default: false
```
## Include stopped ## Include stopped
Will also include created and exited containers. Will also include created and exited containers.

@ -105,6 +105,12 @@ func RegisterSystemFlags(rootCmd *cobra.Command) {
viper.GetBool("WATCHTOWER_RUN_ONCE"), viper.GetBool("WATCHTOWER_RUN_ONCE"),
"Run once now and exit") "Run once now and exit")
flags.BoolP(
"include-restarting",
"",
viper.GetBool("WATCHTOWER_INCLUDE_RESTARTING"),
"Will also include restarting containers")
flags.BoolP( flags.BoolP(
"include-stopped", "include-stopped",
"S", "S",

Loading…
Cancel
Save