Send the correct signal to the instance
This commit is contained in:
parent
640f4b3a98
commit
9dcda47657
|
@ -223,7 +223,7 @@ func (d *DockerEnvironment) Terminate(signal os.Signal) error {
|
||||||
d.Server.SetState(ProcessStoppingState)
|
d.Server.SetState(ProcessStoppingState)
|
||||||
|
|
||||||
return d.Client.ContainerKill(
|
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"),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user