Explorar o código

Perform all operations against stopped containers

Ben Firshman %!s(int64=12) %!d(string=hai) anos
pai
achega
accc1a219a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plum/service.py

+ 1 - 1
plum/service.py

@@ -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: