Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

libcontainer: add /proc/loadavg to the white list of bind mount #1882

Merged
merged 1 commit into from
Sep 4, 2018

Conversation

accepting
Copy link

Signed-off-by: JunLi lijun.git@gmail.com

Signed-off-by: JunLi <lijun.git@gmail.com>
@accepting
Copy link
Author

accepting commented Aug 30, 2018

As we already know, the file /proc/loadavg in container shows the cpu load of the host, rather than the container. In order to get the cpu load of docker containers, we can use fuse to emulate it as lxcfs did which has added loadavg interface in #237. But we still cann't make it, because we can't mount /proc/loadavg to containers as runc has mount limit for files under /proc.

@cyphar
Copy link
Member

cyphar commented Sep 3, 2018

LGTM.

Approved with PullApprove

@crosbymichael
Copy link
Member

crosbymichael commented Sep 4, 2018

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit 784b601 into opencontainers:master Sep 4, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants