mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
Add support for whitelist of monitored containers
This commit is contained in:
parent
d6321bf8dc
commit
b0910ee20b
5 changed files with 60 additions and 9 deletions
6
main.go
6
main.go
|
@ -116,14 +116,16 @@ func before(c *cli.Context) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func start(*cli.Context) {
|
||||
func start(c *cli.Context) {
|
||||
names := c.Args()
|
||||
|
||||
if err := actions.CheckPrereqs(client, cleanup); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
for {
|
||||
wg.Add(1)
|
||||
if err := actions.Update(client, cleanup); err != nil {
|
||||
if err := actions.Update(client, names, cleanup); err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
wg.Done()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue