diff --git a/client/driver/docker.go b/client/driver/docker.go index df02ff87979..9ce049e0990 100644 --- a/client/driver/docker.go +++ b/client/driver/docker.go @@ -325,6 +325,7 @@ func (d *DockerDriver) createContainer(ctx *ExecContext, task *structs.Task, dri config.Env = env.List() return docker.CreateContainerOptions{ + Name: fmt.Sprintf("%s-%s", task.Name, ctx.AllocID), Config: config, HostConfig: hostConfig, }, nil