Add container health status, multi-volume storage, auto-refresh Overview

This commit is contained in:
Gan, Jimmy
2026-02-22 17:11:17 +08:00
parent ae98811c23
commit 8797231f53
3 changed files with 38 additions and 16 deletions
@@ -13,6 +13,7 @@ def list_containers():
"id": c.short_id,
"name": c.name,
"status": c.status,
"health": (c.attrs.get("State", {}).get("Health", {}) or {}).get("Status", ""),
"image": c.image.tags[0] if c.image.tags else str(c.image.id)[:20],
"ports": c.ports,
}