Prefix allocID in container name.

This commit is contained in:
Shishir Mahajan 2020-06-26 18:42:44 -07:00
parent 4e692c42b6
commit 92bd3023f7

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 := namesgenerator.GetRandomName(1) + "_" + cfg.AllocID[:8]
image, err := d.pullImage(driverConfig.Image)
if err != nil {