From 584644287e0624eec4a06ab04606a648cb2af93f Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Fri, 1 Dec 2017 10:43:00 -0500 Subject: [PATCH] get KillTimeout in seconds, not nanoseconds --- client/driver/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/driver/docker.go b/client/driver/docker.go index 867336c1a35d..85496346646a 100644 --- a/client/driver/docker.go +++ b/client/driver/docker.go @@ -1052,7 +1052,7 @@ func (d *DockerDriver) createContainerConfig(ctx *ExecContext, task *structs.Tas User: task.User, Tty: driverConfig.TTY, OpenStdin: driverConfig.Interactive, - StopTimeout: int(task.KillTimeout), + StopTimeout: int(task.KillTimeout.Seconds()), } if driverConfig.WorkDir != "" {