-
Notifications
You must be signed in to change notification settings - Fork 66
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
关于remount_lxcfs的这个功能 #3
Comments
@markzhang0928 是的,这一块还没有实现。方法就是
|
@CodeJuan thx~ 但是我试过你在这里提到的方法,用nsenter 进行mount -B. 宿主上lxcfs进程重启后,容器中的/proc/$file文件会是这样
OS:
Kernel:
|
奥, 最近回顾了一下,找到原因了。 没有mount /var/lib/lxc 到容器的mount ns. |
lxcfs能不能以daemonset的形式在节点运行,ExecStartPost=remount_lxcfs用postStart的pod hook实现remount? |
remount 是可以,前提是容器里面有mount point. |
求教,我用nsenter mount -B就可以成功; docker exec进去mount -B就提示说 这是为什么呢? |
请问下,怎么mount /var/lib/lxc 到容器的mount ns |
同问,把宿主机的/var/lib/lxc mount到容器的/var/lib/lxc? |
邮件已收到,我会尽快查看并回复
|
还是不行,请帮忙看看 @CodeJuan @markzhang0928 @JaeGerW2016 lxcfs是在宿主机上手工启停的 容器启动命令: -v=/sys/fs/cgroup:/sys/fs/cgroup:ro \ -v=/var/lib/lxc/:/var/lib/lxc/:shared \ -v=/var/lib/lxc/lxcfs/proc/diskstats:/proc/diskstats:rw,rslave \ -v=/var/lib/lxc/lxcfs/proc/meminfo:/proc/meminfo:rw,rslave \ -v=/var/lib/lxc/lxcfs/proc/stat:/proc/stat:rw,rslave \ -v=/var/lib/lxc/lxcfs/proc/swaps:/proc/swaps:rw,rslave \ -v=/var/lib/lxc/lxcfs/proc/uptime:/proc/uptime:rw,rslave \ -v=/var/lib/lxc/lxcfs/proc/loadavg:/proc/loadavg:rw,rslave \ --name ddd \ XXXXX` 在宿主机上执行: mount: mount point /proc/meminfo does not exist` 在容器内执行: mount: mount point /proc/cpuinfo is not a directory` |
前提是容器里面有mount point @fjibj |
怎么设置容器里面的mount point? 我在docker run时已经把/var/lib/lxc/挂进去了, |
最近的这个remount_lxcfs 是不是还没有实现哦,我看codecov上的代码还是空的。https://codecov.io/gh/alibaba/pouch/pull/885/diff?src=pr&el=tree#diff-Y2xpL21haW4uZ28=
The text was updated successfully, but these errors were encountered: