Commit Graph

2 Commits

Author SHA1 Message Date
Jacky
bfc1b21457 fix(docker): explicitly negotiate API version to ensure compatibility (#1543)
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: Cursor Agent <cursoragent@cursor.com>
2026-02-06 22:45:08 +08:00
Jacky
d4a4ed1e1c feat(wip): docker ui only 2025-04-20 22:02:29 +08:00