Skip to content

Can we allow mounting some emulated proc files #400

@chenchun

Description

@chenchun

We want to get actual resource stats in containers. Currently some commands like top, free displays total resource stats on host. So we wrote a program called cgroupfs which uses fuse to create emulated /proc/meminfo, /proc/cpuinfo, /proc/diskstats, /proc/stats files. We want to mount those files into containers, but I can't do it now cause runc prevents bind mounting files under /proc. Can we allow mounting some files under proc?

Steps to produce https://github.com/chenchun/cgroupfs#usage

I propose to remove the restriction, like chenchun/docker@0613757#diff-6c6ccfc7b791fef9380cbfae0a91e3b4L308. If maintainers agree, I'd like to push a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions