We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
参考 #issue62 Code-4.1 syscall.PivotRoot error: invalid argument
Sorry, something went wrong.
我把container_process中容器文件系统的目录cmd.Dir = /root/busybox ,改到宿主机用户目录下面工作空间的目录就好了,没有放在/root/下
// 配置Namespace 创建父进程 func NewParentProcess(tty bool) (*exec.Cmd, *os.File) { readPipe, writePipe, err := NewPipe() if err != nil { log.Errorf("New pipe error %v", err) return nil, nil } ///proc 下是所有进程 cmd := exec.Command("/proc/self/exe", "init") cmd.SysProcAttr = &syscall.SysProcAttr{ Cloneflags: syscall.CLONE_NEWUTS | syscall.CLONE_NEWPID | syscall.CLONE_NEWNS | syscall.CLONE_NEWNET | syscall.CLONE_NEWIPC, } if tty { cmd.Stdin = os.Stdin cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr } cmd.ExtraFiles = []*os.File{readPipe} cmd.Dir = "/home/xxx/Workspace/Golangws/xxxDocker/busybox" return cmd, writePipe }
No branches or pull requests
有大佬遇到这个问题吗?
The text was updated successfully, but these errors were encountered: