diff --git a/container/docker_build.go b/container/docker_build.go index 0976b59..66320d0 100644 --- a/container/docker_build.go +++ b/container/docker_build.go @@ -29,7 +29,7 @@ func NewDockerBuildExecutor(input NewDockerBuildExecutorInput) common.Executor { return nil } - cli, err := client.NewClientWithOpts() + cli, err := client.NewClientWithOpts(client.FromEnv) if err != nil { return err } diff --git a/container/docker_pull.go b/container/docker_pull.go index 5cedcd4..394645b 100644 --- a/container/docker_pull.go +++ b/container/docker_pull.go @@ -27,7 +27,7 @@ func NewDockerPullExecutor(input NewDockerPullExecutorInput) common.Executor { imageRef := cleanImage(input.Image) input.Logger.Debugf("pulling image '%v'", imageRef) - cli, err := client.NewClientWithOpts() + cli, err := client.NewClientWithOpts(client.FromEnv) if err != nil { return err } diff --git a/container/docker_run.go b/container/docker_run.go index 3350276..2a30e17 100644 --- a/container/docker_run.go +++ b/container/docker_run.go @@ -37,7 +37,7 @@ func NewDockerRunExecutor(input NewDockerRunExecutorInput) common.Executor { return nil } - cli, err := client.NewClientWithOpts() + cli, err := client.NewClientWithOpts(client.FromEnv) if err != nil { return err }