mirror of https://github.com/docker/docker-py.git
Merge eeefa3f147
into db7f8b8bb6
This commit is contained in:
commit
9b07560421
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue