mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-14 06:06:38 +01: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"
|
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…
Add table
Add a link
Reference in a new issue