mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
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'
This commit is contained in:
parent
f023b42c89
commit
336d31f9f2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue