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

Cannot mount devtmpfs with runC #243

Closed
wking opened this issue Sep 2, 2015 · 2 comments
Closed

Cannot mount devtmpfs with runC #243

wking opened this issue Sep 2, 2015 · 2 comments

Comments

@wking
Copy link
Contributor

wking commented Sep 2, 2015

RunC currently hard-codes a list of supported mount types, which means I can't do things like mount a devtmpfs at /dev (I just end up in the default case and error out). I've tried patching:

-       case "tmpfs":
+       case "tmpfs", "devtmpfs":

but still get errors like:

FATA[0000] Container start failed: [8] System error: operation not permitted

I'd like to be able to mount devtmpfs so we don't have to figure out opencontainers/runtime-spec#95 internally (we can let the Linux-kernel folks figure that out).

More generally, I'd expect we can adjust runC to support arbitrary mount(2)-style mounting without needing to hard-code a list of supported mount types. For example, we could have special handling for cgroups and other things, and then fall back to a generic mount(2)-style call in the default case.

@wking
Copy link
Contributor Author

wking commented Mar 11, 2016

Maybe fixed in v0.9.0 (“Allow all mount types inside the container's mount namespace”)?

@hqhq
Copy link
Contributor

hqhq commented Mar 11, 2016

I think so, closing.

@hqhq hqhq closed this as completed Mar 11, 2016
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

2 participants