Commit Graph

13 Commits

Author SHA1 Message Date
Cursor Agent
0ee88d8429 fix: improve Docker StatPath with better error diagnostics
- Add container existence check before calling ContainerStatPath
- Provide detailed error messages when container is not found
- Add helpful hints for troubleshooting container name configuration
- Log container state information for debugging
- Include container name, path, and running state in error logs

This helps users diagnose issues when nginx-ui cannot connect to the
nginx container, particularly when the container name doesn't match
or the container is not running.

Co-authored-by: Jacky <me@jackyu.cn>
2026-02-08 11:36:49 +00:00
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
0xJacky
ccedb94880 chore: clean up codes 2025-10-03 14:33:07 +08:00
Jacky
563d344252 fix(docker): [ota] update entrypoint for container creation 2025-05-03 09:59:16 +00:00
Jacky
123dd83b51 fix(docker): [ota] stop old container 2025-05-03 09:30:14 +00:00
Jacky
1f561a0dba fix(docker): update command for temp container 2025-05-03 09:12:01 +00:00
Jacky
6099b72f2a fix(docker): [ota] config of create temp container 2025-05-03 08:59:52 +00:00
Jacky
7b642eb12c fix(docker): get container id by /proc/self/mountinfo 2025-05-03 08:51:03 +00:00
Jacky
e8ee931e16 feat: mcp server 2025-04-29 17:41:09 +08:00
Jacky
ff7f2e4f73 feat(ota): enhance Docker upgrade process with progress tracking 2025-04-21 13:57:49 +00:00
Jacky
d0cf93d5e3 refactor: replace upgrader with version package for runtime and release information 2025-04-21 08:06:27 +00:00
Jacky
e2c43be24a feat(ota): upgrade container 2025-04-21 06:20:15 +00:00
Jacky
d4a4ed1e1c feat(wip): docker ui only 2025-04-20 22:02:29 +08:00