forward all signals to the container

Signed-off-by: Krasi Georgiev <krasi.root@gmail.com>
This commit is contained in:
Krasi Georgiev
2017-04-14 14:06:00 +03:00
parent 455a185d98
commit e03485acda
6 changed files with 111 additions and 75 deletions

View File

@@ -169,6 +169,9 @@ var runCommand = cli.Command{
if err := handleConsoleResize(ctx, containers, response.ID, response.Pid, con); err != nil {
logrus.WithError(err).Error("console resize")
}
} else {
sigc := forwardAllSignals(containers, id)
defer stopCatch(sigc)
}
if _, err := containers.Start(ctx, &execution.StartRequest{
ID: response.ID,