Perform all operations against stopped containers
This commit is contained in:
parent
6abec85703
commit
accc1a219a
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ class Service(object):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def containers(self):
|
def containers(self):
|
||||||
return [c for c in self.client.containers() if parse_name(get_container_name(c))[0] == self.name]
|
return [c for c in self.client.containers(all=True) if parse_name(get_container_name(c))[0] == self.name]
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
if len(self.containers) == 0:
|
if len(self.containers) == 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue