From 9dcda47657d75e810e7a8aae29743dc055b9247c Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 28 Sep 2019 13:18:09 -0700 Subject: [PATCH] Send the correct signal to the instance --- server/environment_docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/environment_docker.go b/server/environment_docker.go index e9a6128..ae99f7f 100644 --- a/server/environment_docker.go +++ b/server/environment_docker.go @@ -223,7 +223,7 @@ func (d *DockerEnvironment) Terminate(signal os.Signal) error { d.Server.SetState(ProcessStoppingState) return d.Client.ContainerKill( - ctx, d.Server.Uuid, strings.TrimPrefix("signal ", signal.String()), + ctx, d.Server.Uuid, strings.TrimSuffix(strings.TrimPrefix(signal.String(), "signal "), "ed"), ) }