[lxc-users] file sharing with unprivileged containers
Serge Hallyn
serge.hallyn at ubuntu.com
Tue Feb 24 03:38:33 UTC 2015
Quoting Josh Ford (ford at ford-legal.com):
> Kick me if this is what lxcfs is all about:
>
> I recently came across the following article and was wondering if the same could somehow be done using unprivileged containers:
>
> http://www.flockport.com/build-distributed-storage-nodes-with-lxc-and-gluster/
>
> I've tried adding the following to my container configs:
>
> #fuse
> lxc.cgroup.devices.allow = c 10:229 rwm
>
> But I get the following when I go to mknod in the container:
>
> jimmy at p1:~$ sudo mknod /dev/fuse c 10 229
> mknod: ‘/dev/fuse’: Permission denied
Root in an unprivileged container cannot create any devices. You'll want
to just add something like
lxc.mount.entry = /dev/fuse dev/fuse none bind,create=file 0 0
to your container config file
> At the end of the day, I'm just trying to figure out the easiest way to share 'centralized' files (e.g., an 'uploads' folder) among my various containers. They will all need access in the same manner nfs would be used with physical servers.
>
> Apologies in advance if the answer is obvious, but I greatly appreciate any guidance any of you can provide.
>
> Cheers,
>
> Josh
>
>
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
More information about the lxc-users
mailing list