mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-14 14:10:12 +01:00
Make it possible to use watchtower to update exited or created containers as well (#289)
* feature/112: add additional tests that verify include-stopped * feature/112: implement include-stopped * feature/112: update readme and cli help * feature/112: fix linting issues * remove superfluous logging
This commit is contained in:
parent
1631c8cc2e
commit
e584f8bfcf
8 changed files with 101 additions and 33 deletions
10
app/app.go
10
app/app.go
|
|
@ -155,8 +155,14 @@ func SetupCliFlags(app *cli.App) {
|
|||
EnvVar: "WATCHTOWER_MONITOR_ONLY",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "run-once",
|
||||
Usage: "Run once now and exit",
|
||||
Name: "run-once",
|
||||
Usage: "Run once now and exit",
|
||||
EnvVar: "WATCHTOWER_RUN_ONCE",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "include-stopped",
|
||||
Usage: "Will also include created and exited containers",
|
||||
EnvVar: "WATCHTOWER_INCLUDE_STOPPED",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue