Skip to content

Commit

Permalink
Set a name for the container.
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek Chanda authored and achanda committed Nov 6, 2015
1 parent 8ed9655 commit 4fb7c3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/driver/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fb7c3d

Please sign in to comment.