Skip to content

Commit

Permalink
Update pkg/docker/docker.go
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Kaplan <adam.kaplan@redhat.com>
  • Loading branch information
matejvasek and adambkaplan committed Feb 23, 2024
1 parent e66a3ca commit 12cca5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,11 @@ func NewEngineAPIClient(config *api.DockerConfig) (*dockerapi.Client, error) {
},
}
}

// Create a new docker client with the provided host endpoint and HTTP Client.
// By default, this client will negotiate the Docker API version to use with the backend engine on the first request.
// The API version to use can be fixed by setting the DOCKER_API_VERSION environment variable.
// See https://pkg.go.dev/github.com/docker/docker/client#WithAPIVersionNegotiation and
// https://pkg.go.dev/github.com/docker/docker/client#WithVersionFromEnv for more information
return dockerapi.NewClientWithOpts(
dockerapi.WithHost(config.Endpoint),
dockerapi.WithHTTPClient(httpClient),
Expand Down

0 comments on commit 12cca5e

Please sign in to comment.