diff --git a/client/driver/docker.go b/client/driver/docker.go index 1708c692116..349ae2f085f 100644 --- a/client/driver/docker.go +++ b/client/driver/docker.go @@ -250,6 +250,7 @@ func (d *DockerDriver) createContainer(ctx *ExecContext, task *structs.Task) (do } return docker.CreateContainerOptions{ + Name: fmt.Sprintf("%s-%s", task.Name, ctx.AllocID), Config: config, HostConfig: hostConfig, }, nil