Fix review comments.

This commit is contained in:
Shishir Mahajan 2020-06-29 11:38:31 -07:00
parent 92bd3023f7
commit 66c2eb0b93
No known key found for this signature in database
GPG Key ID: D41782E7688DEC4A

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