Merge branch 'pr-3147'

This commit is contained in:
Milas Bowman 2023-11-20 16:18:23 -05:00
commit b3349c88ef
1 changed files with 9 additions and 0 deletions

View File

@ -63,6 +63,15 @@ class Container(Model):
return self.attrs['State']['Status']
return self.attrs['State']
@property
def health(self):
"""
The healthcheck status of the container.
For example, ``healthy`, or ``unhealthy`.
"""
return self.attrs.get('State', {}).get('Health', {}).get('Status', 'unknown')
@property
def ports(self):
"""