mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
Add WATCHTOWER_INCLUDE_RESTARTING env for include-restarting flag (#720)
This commit is contained in:
parent
352574d387
commit
e230967196
2 changed files with 16 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue