Begin work on context template

This commit is contained in:
Niels Geens
2024-10-25 16:30:11 +02:00
parent 016187fa21
commit b72490796e
6 changed files with 110 additions and 23 deletions

View File

@@ -269,3 +269,12 @@ class DockerModule:
except Exception as e:
self.logger.error(f"Error getting status for container {name}: {str(e)}")
raise
def get_all_container_statuses(self) -> List[Dict[str, any]]:
"""Get current status information for all containers.
Returns:
List of dictionaries with container status information
"""
statuses = []
for name, (container, socket) in self.containers.items():
statuses.append(self.get_container_status(name))