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

This commit is contained in:
ilike2burnthing 2021-01-06 21:34:58 +00:00 committed by GitHub
parent 352574d387
commit e230967196
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -118,6 +118,16 @@ Environment Variable: DOCKER_API_VERSION
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
Will also include created and exited containers.

View file

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