diff --git a/pkg/docker/docker.go b/pkg/docker/docker.go index fa0f6cb71..a4d296821 100644 --- a/pkg/docker/docker.go +++ b/pkg/docker/docker.go @@ -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),