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"), ) }