This commit is contained in:
dementedhedgehog 2025-01-23 10:20:25 +00:00 committed by GitHub
commit 9b07560421
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,13 @@ class Service(Model):
"""
return self.attrs.get('Version').get('Index')
@property
def image(self):
"""
The name of the image used by the service.
"""
return self.attrs['Spec']['TaskTemplate']['ContainerSpec']['Image']
def remove(self):
"""
Stop and remove the service.