From 336d31f9f286e5c68a22cac360ee1f683fcb9e8d Mon Sep 17 00:00:00 2001 From: art610 Date: Wed, 12 Nov 2025 17:55:53 +0300 Subject: [PATCH] Fix: Use Docker API version negotiation instead of hardcoded 1.25 - Replace client.WithVersion(APIVersion) with client.WithAPIVersionNegotiation() - Remove unused APIVersion constant - Fixes compatibility with Docker daemons requiring API version >= 1.44 Resolves error: 'client version 1.25 is too old. Minimum supported API version is 1.44' --- pkg/commands/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/docker.go b/pkg/commands/docker.go index 28c12c23..7820c57e 100644 --- a/pkg/commands/docker.go +++ b/pkg/commands/docker.go @@ -97,7 +97,7 @@ func NewDockerCommand(log *logrus.Entry, osCommand *OSCommand, tr *i18n.Translat dockerHost = dockerHostFromEnv } - cli, err := client.NewClientWithOpts(client.FromEnv, client.WithVersion(APIVersion), client.WithHost(dockerHost)) + cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation(), client.WithHost(dockerHost)) if err != nil { ogLog.Fatal(err) }