mirror of
https://github.com/docker/compose.git
synced 2025-07-23 21:54:40 +02:00
Perform all operations against stopped containers
This commit is contained in:
parent
6abec85703
commit
accc1a219a
@ -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…
x
Reference in New Issue
Block a user