mirror of
https://github.com/docker/compose.git
synced 2025-06-30 10:24:30 +02:00
Merge pull request #207 from orchardup/fig-run-correct-exit-code
Return correct exit code from fig run
This commit is contained in:
commit
715e29d7ba
@ -233,10 +233,11 @@ class TopLevelCommand(Command):
|
|||||||
with self._attach_to_container(container.id, raw=tty) as c:
|
with self._attach_to_container(container.id, raw=tty) as c:
|
||||||
service.start_container(container, ports=None, one_off=True)
|
service.start_container(container, ports=None, one_off=True)
|
||||||
c.run()
|
c.run()
|
||||||
|
exit_code = container.wait()
|
||||||
if options['--rm']:
|
if options['--rm']:
|
||||||
container.wait()
|
|
||||||
log.info("Removing %s..." % container.name)
|
log.info("Removing %s..." % container.name)
|
||||||
self.client.remove_container(container.id)
|
self.client.remove_container(container.id)
|
||||||
|
sys.exit(exit_code)
|
||||||
|
|
||||||
def scale(self, options):
|
def scale(self, options):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user