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
|
|
@ -38,6 +38,13 @@ func (c Container) ID() string {
|
|||
return c.containerInfo.ID
|
||||
}
|
||||
|
||||
// IsRunning returns a boolean flag indicating whether or not the current
|
||||
// container is running. The status is determined by the value of the
|
||||
// container's "State.Running" property.
|
||||
func (c Container) IsRunning() bool {
|
||||
return c.containerInfo.State.Running
|
||||
}
|
||||
|
||||
// Name returns the Docker container name.
|
||||
func (c Container) Name() string {
|
||||
return c.containerInfo.Name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue