Skip to content

Commit

Permalink
Actually mount the local directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Oct 18, 2016
1 parent a6b0747 commit d767367
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/driver/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,12 @@ func (d *DockerDriver) containerBinds(driverConfig *DockerDriverConfig, alloc *a
task *structs.Task) ([]string, error) {

shared := alloc.SharedDir
local, ok := alloc.TaskDirs[task.Name]
taskDir, ok := alloc.TaskDirs[task.Name]
if !ok {
return nil, fmt.Errorf("Failed to find task local directory: %v", task.Name)
}
local := filepath.Join(taskDir, allocdir.TaskLocal)

secret, err := alloc.GetSecretDir(task.Name)
if err != nil {
return nil, err
Expand Down

0 comments on commit d767367

Please sign in to comment.