container details: limits, sandbox flags and a live stats sample

Container details now carry the image id and the HostConfig resource limits
(CPU cores and shares, memory and swap bytes, pids, device requests) plus sandbox flags
(privileged, read-only rootfs, network mode, restart policy), with null meaning unlimited. A new
GET /api/v1/docker/containers/{name}/stats returns one live sample: CPU percent
of one core, memory working set, processes, block IO and network bytes. Peers
proxy the new route.

Env, labels, command lines and mounts are deliberately excluded from the payload.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
HermenixandClaude Sonnet 5.5 committed 2026-11-05 03:02:33 +00:00
1 parent 72fccc34f8
commit 0ff3520563
16 files changed
+947 -19

No files matched your search

+1 -1
View File
@@ -332,7 +332,7 @@ async fn every_router_route_is_documented() {
let mut routes = api_routes();
routes.extend(server_routes());
// A scan that stops matching would make the checks below vacuous.
assert_eq!(routes.len(), 17, "route scan found: {routes:?}");
assert_eq!(routes.len(), 18, "route scan found: {routes:?}");
for route in routes {
let path = openapi_path(&route.path);
let item =