diff --git a/CHANGELOG.md b/CHANGELOG.md index f6b01e0..b2838f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.5.2] - 2024-07-31 +### Fixed +- Use `client.FromEnv` when creating docker client + ## [0.5.1] - 2024-07-31 ### Update - Bump `docker/docker` to `v26.1.4` diff --git a/puller.go b/puller.go index 65b5e67..2704cbb 100644 --- a/puller.go +++ b/puller.go @@ -99,7 +99,7 @@ func (i *ImagePullerImpl) tryPullImage(ctx context.Context, imageName string) er authStr = base64.URLEncoding.EncodeToString(encodedJSON) } - cli, err := client.NewClientWithOpts() + cli, err := client.NewClientWithOpts(client.FromEnv) if err != nil { return fmt.Errorf("creating docker client: %v", err) } diff --git a/runner.go b/runner.go index b2d8382..dff8fb6 100644 --- a/runner.go +++ b/runner.go @@ -63,7 +63,7 @@ func (r *Runner) startContainer(ctx context.Context) { func (r *Runner) createDockerClient() { var err error - r.client, err = client.NewClientWithOpts() + r.client, err = client.NewClientWithOpts(client.FromEnv) r.require.NoError(err, "Unable to create a docker client: %v", err) }