Merge pull request #12 from Roblox/alloc_id
Prefix allocID in container name.
This commit is contained in:
commit
f3896d5ec2
@ -300,7 +300,7 @@ func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drive
|
||||
|
||||
// Generate a random container name using docker namesgenerator package.
|
||||
// https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go
|
||||
containerName := namesgenerator.GetRandomName(1)
|
||||
containerName := cfg.AllocID[:8] + "_" + namesgenerator.GetRandomName(1)
|
||||
|
||||
image, err := d.pullImage(driverConfig.Image)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user