瀏覽代碼

Perform all operations against stopped containers

Ben Firshman 12 年之前
父節點
當前提交
accc1a219a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plum/service.py

+ 1 - 1
plum/service.py

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