killing should be done with wait client

Incidentally changed in 5b14d24bf4
This commit is contained in:
Mahmood Ali
2018-11-07 23:37:16 -08:00
parent 6b8c6836a9
commit 9d8a71dc44

View File

@@ -1852,7 +1852,7 @@ func (h *DockerHandle) Signal(s os.Signal) error {
// Kill is used to terminate the task. This uses `docker stop -t killTimeout`
func (h *DockerHandle) Kill() error {
// Stop the container
err := h.client.StopContainer(h.containerID, uint(h.killTimeout.Seconds()))
err := h.waitClient.StopContainer(h.containerID, uint(h.killTimeout.Seconds()))
if err != nil {
// Container has already been removed.