Merge pull request #2393 from seguins/1814-restart-stopped-containers
Fix restart with stopped containers.
This commit is contained in:
commit
91fb6156c6
2 changed files with 10 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue