Fix restart with stopped containers.

Fixes #1814

Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
This commit is contained in:
Stéphane Seguin 2015-11-14 12:19:57 +01:00
commit 61f91ebff7
2 changed files with 10 additions and 1 deletions

View file

@ -185,7 +185,7 @@ class Service(object):
c.kill(**options)
def restart(self, **options):
for c in self.containers():
for c in self.containers(stopped=True):
log.info("Restarting %s" % c.name)
c.restart(**options)