Merge pull request #12 from Roblox/alloc_id

Prefix allocID in container name.
This commit is contained in:
Shishir 2020-06-29 11:43:51 -07:00 committed by GitHub
commit f3896d5ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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