mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-14 14:10:12 +01:00
Allow user-configurable DOCKER_HOST
This commit is contained in:
parent
00f2875abf
commit
4ba21639a0
10 changed files with 202 additions and 35 deletions
|
|
@ -8,9 +8,7 @@ import (
|
|||
|
||||
func watchtowerContainersFilter(c container.Container) bool { return c.IsWatchtower() }
|
||||
|
||||
func CheckPrereqs() error {
|
||||
client := container.NewClient()
|
||||
|
||||
func CheckPrereqs(client container.Client) error {
|
||||
containers, err := client.ListContainers(watchtowerContainersFilter)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue