fix #5 - configure docker client via env

This commit is contained in:
Casey Lee 2019-01-15 21:54:37 -08:00
parent 28af42867a
commit e8c8579eff
No known key found for this signature in database
GPG key ID: 4CC378651BF9C168
3 changed files with 3 additions and 3 deletions

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}