Initialize dockerhandle with jobname, taskgroupname, taskname and allocid

This commit is contained in:
Jesus Vazquez 2018-05-04 14:02:19 +08:00
parent 127b764dfb
commit 4f6db56283
1 changed files with 4 additions and 0 deletions

View File

@ -903,6 +903,10 @@ func (d *DockerDriver) Start(ctx *ExecContext, task *structs.Task) (*StartRespon
executor: exec,
pluginClient: pluginClient,
logger: d.logger,
jobName: d.DriverContext.jobName,
taskGroupName: d.DriverContext.taskGroupName,
taskName: d.DriverContext.taskName,
allocID: d.DriverContext.allocID,
Image: d.driverConfig.ImageName,
ImageID: d.imageID,
containerID: container.ID,