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
mount syscall #98
Comments
Well mount syscall works. Bind mounts should work, but are subject of some restrictions. I can do And as far as I know you can't mount block device because the user that runs vagga is still that user, so kernel doesn't trust him to read block devices. |
Good to know :-) Do you remind if
It's not a block device but a filesystem image. As far as I know, now it's not required to create a loop device to mount them and can be used directly, isn't it? |
Yes. It works.
As far as I know you use loop device even if not specified explicitly (http://unix.stackexchange.com/a/66079/96831). So I believe you can't. I've tried to get loop device working a year ago or so without a success. I don't know if anything changed yet. Probably not. |
Seems OverlayFS doesn't work, too... :-/ That's a shame, because NodeOS use it extensively (one of them for each user) :-( I suppose FUSE-based filesystems will have these problems too, isn't it? |
Seems Docker now support to mount FUSE filesystems by combining capabilities and device mapping. Would this be possible to implement on Also seems that by using the volumes options it's possible to map a single file (not a full directory) and use it directly, so it would be possible to "pass" a disk image and mount it from inside the container. Is this feasable with |
While it's not impossible it's hard to implement. AFAIR, you need to run fusermount in the host, and pass the file descriptor to it from a container.
Probably no, because to mount a file to use as disk image you need a loop device, not a file itself (just mount utility hides it for you). And mounting loopfs is disabled for non-root because kernel developers do not trust filesystem drivers (i.e. there can be a specially crafted image which exhausts resources of whole system). By the way, OverlayFS should work on ubuntu kernel (it has a patch). |
Should work out of the box now, given that #239 is merged. As of vagga v0.5.0-142-g618cf0b |
That's cool! I'll try to find time to check it. Thanks! :-D |
How could this be used? Are the docs updated? |
I'm not sure that we have ever mentioned about mounts in docs. What needs to be updates? (if you having troubles, with running |
I'll get in touch with you when I get time to check it, thanks :-) |
Can someone confirm if running mount inside container to mount a loop device should work now. Inside container I'm only able to:
But mounting fails with:
|
When trying to use the
mount
syscall to mount a filesystem image I get the next error:Could it be possible I can't be able to use the
mount
syscall from inside vagga? And if so, what alternatives do I have? I know I can be able to set a volume, but they are only mapping to a host folder and don't allow to mount disk images. I could live with this, but can I be able later to use mount bind and mount move from inside vagga? NodeOS use them to create a clean filesystem hierarchy... :-/The text was updated successfully, but these errors were encountered: