Add comprehensive Docker containers management page with filtering, search, bulk actions, and enhanced container control with state verification

This commit is contained in:
2025-12-15 23:54:45 -05:00
parent 68a9b0f390
commit 230387a14e
50 changed files with 10856 additions and 35 deletions
+25
View File
@@ -273,3 +273,28 @@ class DockerImageExtendedListResponse(BaseModel):
total: int
total_size: int
unused_count: int = 0
# === Aggregated Containers Response ===
class DockerContainerAggregatedResponse(DockerContainerBase):
"""Response schema for Docker container with host info (for aggregated view)."""
id: int
host_id: str
host_name: str
host_ip: str
created_at: Optional[datetime] = None
last_update_at: Optional[datetime] = None
model_config = ConfigDict(from_attributes=True)
class DockerContainerAggregatedListResponse(BaseModel):
"""Response for listing all containers across all hosts."""
containers: List[DockerContainerAggregatedResponse]
total: int
running: int
stopped: int
paused: int
hosts_count: int
last_update: Optional[datetime] = None