mirror of https://github.com/docker/compose.git
Perform all operations against stopped containers
This commit is contained in:
parent
6abec85703
commit
accc1a219a
|
@ -17,7 +17,7 @@ class Service(object):
|
|||
|
||||
@property
|
||||
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):
|
||||
if len(self.containers) == 0:
|
||||
|
|
Loading…
Reference in New Issue