Skip to content

Commit

Permalink
Merge pull request #389 from achanda/name
Browse files Browse the repository at this point in the history
Set a name for the container
  • Loading branch information
dadgar committed Nov 17, 2015
2 parents cfbaaea + 4fb7c3d commit dc0501e
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 @@ -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
Expand Down

0 comments on commit dc0501e

Please sign in to comment.