Skip to content

Commit

Permalink
path correction
Browse files Browse the repository at this point in the history
  • Loading branch information
pkazmierczak committed Feb 19, 2025
1 parent fab5714 commit 39d12bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/shared/executor/executor_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"os"
"os/exec"
"os/signal"
"path"
"path/filepath"
"strings"
"sync/atomic"
Expand Down Expand Up @@ -170,7 +171,7 @@ func (l *LibcontainerExecutor) Launch(command *ExecCommand) (*ProcessState, erro
}

l.cleanOldProcessesInCGroup(containerCfg.Cgroups.Path)
container, err := libcontainer.Create("../alloc/container", l.id, containerCfg)
container, err := libcontainer.Create(path.Join(command.TaskDir, "../alloc/container"), l.id, containerCfg)
if err != nil {
return nil, fmt.Errorf("failed to create container(%s): %v", l.id, err)
}
Expand Down

0 comments on commit 39d12bc

Please sign in to comment.