Set a name for the container.

This commit is contained in:
Abhishek Chanda 2015-11-05 10:03:59 -08:00 committed by Abhishek Chanda
parent 135d8630f6
commit 94a4d00f4b

View file

@ -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