mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 02:45:42 +03:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user