Skip to content

Commit 3d2e371

Browse files
committed
docker: enables automatic API version negotiation for the client
1 parent 555f393 commit 3d2e371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/docker/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type DockerClient struct {
3434

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

0 commit comments

Comments
 (0)