Quoting Josh Ford ([email protected]):
> 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@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
> [email protected]
> http://lists.linuxcontainers.org/listinfo/lxc-users
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to