浏览代码

Immediately kill / force-rm one-off container when receiving SIGHUP

Signed-off-by: Joffrey F <[email protected]>
Joffrey F 7 年之前
父节点
当前提交
75572f3860
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compose/cli/main.py

+ 1 - 1
compose/cli/main.py

@@ -1274,7 +1274,7 @@ def run_one_off_container(container_options, project, service, options, project_
                 service.start_container(container)
                 pty.start(sockets)
                 exit_code = container.wait()
-        except (signals.ShutdownException, signals.HangUpException):
+        except (signals.ShutdownException):
             project.client.stop(container.id)
             exit_code = 1
     except (signals.ShutdownException, signals.HangUpException):