Skip to content
New issue

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

code-4.1 "fork/exec /proc/self/exe: no such file or directory" #80

Open
baipangbai opened this issue May 27, 2021 · 1 comment
Open

Comments

@baipangbai
Copy link

环境:Linux vagrant 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

  1. 在container_process.go中不添加 "cmd.Dir = "/root/busybox" 这行,不会报/proc/self/exe 文件不存在。
    报错信息是:{"level":"error","msg":"Exec loop path error exec: "sh": executable file not found in $PATH","time":"2021-05-27T14:04:15Z"}
    {"level":"fatal","msg":"exec: "sh": executable file not found in $PATH","time":"2021-05-27T14:04:15Z"}

  2. 在container_process.go中添加 "cmd.Dir = "/root/busybox"这行后,报错"fork/exec /proc/self/exe: no such file or directory"
    (mount确认已经绑定过 #mount: /proc: proc already mounted on /proc.)

@JasonkayZK
Copy link

你要把解压的busybox放到/root下,你新挂载的文件系统没有 sh 命令;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants