1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

fix #5 - configure docker client via env

This commit is contained in:
Casey Lee 2019-01-15 21:54:37 -08:00
parent d2c440bf4f
commit c29a448085
3 changed files with 3 additions and 3 deletions

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
}