Set a name for the container.
This commit is contained in:
parent
135d8630f6
commit
94a4d00f4b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue