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:
Simon Aronsson 2019-05-12 09:29:52 +02:00 committed by GitHub
parent 1631c8cc2e
commit e584f8bfcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 101 additions and 33 deletions

View file

@ -89,7 +89,10 @@ func before(c *cli.Context) error {
return err
}
client = container.NewClient(!c.GlobalBool("no-pull"))
client = container.NewClient(
!c.GlobalBool("no-pull"),
c.GlobalBool("include-stopped"),
)
notifier = notifications.NewNotifier(c)
return nil