Files
nginx-ui/internal/docker
Cursor Agent 562097a532 fix(docker): explicitly negotiate API version to ensure compatibility
The Docker client SDK v28.5.2 defaults to API version 1.51, which may not
be supported by older Docker daemon versions. Although WithAPIVersionNegotiation()
is used, the manual Ping() call in initClient() does not trigger the automatic
version negotiation flow.

This fix explicitly calls NegotiateAPIVersionPing() with the ping response
to ensure the client uses a compatible API version with the Docker daemon.
This resolves the '404 Not Found for API route and version' error when
controlling Nginx in another Docker container.

Fixes #1543

Co-authored-by: Jacky <me@jackyu.cn>
2026-02-06 14:16:06 +00:00
..
2025-10-03 14:33:07 +08:00
2025-04-20 22:02:29 +08:00
2025-10-03 14:33:07 +08:00
2025-04-20 22:02:29 +08:00
2025-04-20 22:02:29 +08:00