diff --git a/daemon.go b/daemon.go index de6ce4a3426c22b9257c5f9b3ade2c6b67765ab3..5cd08a6dc23c5c4db29091f55f823614a33b0441 100644 --- a/daemon.go +++ b/daemon.go @@ -159,7 +159,7 @@ func daemonChroot(cmd *exec.Cmd) (path string, err error) { // Update command to use chroot cmd.SysProcAttr.Chroot = wd - cmd.Path = temporaryExecutable.Name() + cmd.Path = "/" + temporaryExecutable.Name() cmd.Dir = "/" path = filepath.Join(wd, temporaryExecutable.Name()) return