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

父进程执行初始化的时候指定了错误的 rootfs 目录 #11

Open
stanxing opened this issue Jun 20, 2020 · 0 comments
Open

父进程执行初始化的时候指定了错误的 rootfs 目录 #11

stanxing opened this issue Jun 20, 2020 · 0 comments

Comments

@stanxing
Copy link

感谢分享,整个项目结构非常清晰。

我自己在测试的时候发现给容器指定的 rootfs 的目录不对,这里是代码连接

Screenshot from 2020-06-20 19-13-29

这里应该是 cmd.Dir = common.MntPath + containerName

因为执行 mount -t aufs xxx 的时候,是挂载到了 mntPath下,这个值被设置为 mntPath := path.Join(common.MntPath, containerName)代码连接

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

1 participant