-
Notifications
You must be signed in to change notification settings - Fork 560
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
run -d top退出后,ps -ef查看不到 #72
Comments
I also have this kind of problem, but there is no goo solution yet. Lokking for an answer |
终于破案了....... 以下仅是我的一些结论。希望对你能有点帮助。 如果有不对的地方,希望指正。 我也是这个问题,找了一圈没有找到相应的解释,就自己找起了原因 cmd.SysProcAttr = &syscall.SysProcAttr{
用上面的代码运行,运行 sudo ./mydocker run -d top , 在宿主机上跑 ps -ef | grep top 是找不到 运行 top 这个进程。 第二个命令是 top -b, 然后将输出重新定向到文件里。 然后运行。 另外: 这些是我的疑惑。想找到原因。 进行以下操作,也是可以用 ps -ef | grep top 但是这个我也不知道为什么, 希望有大佬能帮忙解惑 |
我的内核是3.10.0, 我也出现了这个问题,其实只需要把cmd的标准错误输入、输出啥的给他重定向都一个文件中,也就能后台运行的了。 |
No description provided.
The text was updated successfully, but these errors were encountered: