Skip to content

Commit

Permalink
Merge pull request #313 from crazy-max/fix-docker-api
Browse files Browse the repository at this point in the history
docker: enables automatic API version negotiation for the client
  • Loading branch information
crazy-max authored Jan 31, 2024
2 parents 8c8ec9f + 3d2e371 commit 8ee2a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/docker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type DockerClient struct {

// NewEnvClient initializes a new Docker API client based on environment variables
func NewEnvClient() (*DockerClient, error) {
dockerAPICli, err := client.NewClientWithOpts(client.FromEnv, client.WithVersion("1.12"))
dockerAPICli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
if err != nil {
return nil, errors.Wrap(err, "failed to initialize Docker API client")
}
Expand Down

0 comments on commit 8ee2a47

Please sign in to comment.