Proper reference counting through task restarts

This PR fixes an issue in which the reference count on a Docker image
would become inflated through task restarts.
This commit is contained in:
Alex Dadgar
2017-03-25 17:05:53 -07:00
parent 2135315f95
commit 564367fa71
15 changed files with 105 additions and 92 deletions

View File

@@ -248,7 +248,7 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
executorCtx := &executor.ExecutorContext{
TaskEnv: d.taskEnv,
Driver: "java",
AllocID: ctx.AllocID,
AllocID: d.DriverContext.allocID,
Task: task,
TaskDir: ctx.TaskDir.Dir,
LogDir: ctx.TaskDir.LogDir,