mirror of https://github.com/docker/compose.git
Immediately kill / force-rm one-off container when receiving SIGHUP
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
a6459efcad
commit
75572f3860
|
@ -1274,7 +1274,7 @@ def run_one_off_container(container_options, project, service, options, project_
|
||||||
service.start_container(container)
|
service.start_container(container)
|
||||||
pty.start(sockets)
|
pty.start(sockets)
|
||||||
exit_code = container.wait()
|
exit_code = container.wait()
|
||||||
except (signals.ShutdownException, signals.HangUpException):
|
except (signals.ShutdownException):
|
||||||
project.client.stop(container.id)
|
project.client.stop(container.id)
|
||||||
exit_code = 1
|
exit_code = 1
|
||||||
except (signals.ShutdownException, signals.HangUpException):
|
except (signals.ShutdownException, signals.HangUpException):
|
||||||
|
|
Loading…
Reference in New Issue