mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 16:55:56 +03:00
[PR #1543] [MERGED] Docker client version update #1329
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#1329
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/0xJacky/nginx-ui/pull/1543
Author: @0xJacky
Created: 2/6/2026
Status: ✅ Merged
Merged: 2/6/2026
Merged by: @0xJacky
Base:
dev← Head:cursor/docker-client-version-update-d1b4📝 Commits (1)
562097afix(docker): explicitly negotiate API version to ensure compatibility📊 Changes
1 file changed (+5 additions, -2 deletions)
View changed files
📝
internal/docker/docker.go(+5 -2)📄 Description
Explicitly negotiate Docker API version to ensure compatibility with older Docker daemon versions.
The
WithAPIVersionNegotiation()option was enabled, but the manualcli.Ping()call ininitClient()did not trigger the client's internal version negotiation mechanism. This resulted in the client attempting to use its default API version (v1.51) for subsequent calls, leading to "404 Not Found" errors when connecting to older Docker daemons. By explicitly callingcli.NegotiateAPIVersionPing(ping)after a successful ping, the client's API version is correctly downgraded to match the daemon's capabilities.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.