mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-14 14:10:12 +01:00
improve test coverage
This commit is contained in:
parent
16b66ac10b
commit
f8dd9bb02a
4 changed files with 148 additions and 18 deletions
|
|
@ -34,7 +34,7 @@ type Client interface {
|
|||
// * DOCKER_TLS_VERIFY whether to verify tls certificates
|
||||
// * DOCKER_API_VERSION the minimum docker api version to work with
|
||||
func NewClient(pullImages bool) Client {
|
||||
cli, err := dockerclient.NewEnvClient()
|
||||
cli, err := dockerclient.NewClientWithOpts(dockerclient.FromEnv)
|
||||
|
||||
if err != nil {
|
||||
log.Fatalf("Error instantiating Docker client: %s", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue