Re: [lxc-users] How to mount directories from $HOME into an unprivileged container?

2015-08-17 Thread Serge Hallyn
Quoting Karma Kolabor (collabori...@gmail.com): > Hi Serge, > > thanks for the quick reply! the "hole" word made it click! I added > this to the config, now it seems to work: > > lxc.id_map = u 0 10 1000 > lxc.id_map = g 0 10 1000 > lxc.id_map = u 1000 1000 1 > lxc.id_map = g 1000 1000 1

Re: [lxc-users] Mount directory with space in the path

2015-08-17 Thread Andrey Repin
Greetings, Valerio Mariani! >     I have been using this syntax to mount some of the hosts's > directories in the container: > lxc config device add gp sources disk source=$HOME/p/gratipay.com > path=/opt/srv lxc config device add gp sources disk source="$HOME/p/gratipay.com" path

Re: [lxc-users] LXC and Unprivileged containers - purpose and status - talks

2015-08-17 Thread Luis M. Ibarra
Hi all, There's going to be excellent talks in ContainerCon[1] this week, but I don't know if the talks are going to be streamed later. For User Namespaces, I follow this tutorial[2] which explains pretty well how user namespaces work. Also, check user_namespaces(7) and capabilities(7), here you

Re: [lxc-users] How to mount directories from $HOME into an unprivileged container?

2015-08-17 Thread Karma Kolabor
Hi Serge, thanks for the quick reply! the "hole" word made it click! I added this to the config, now it seems to work: lxc.id_map = u 0 10 1000 lxc.id_map = g 0 10 1000 lxc.id_map = u 1000 1000 1 lxc.id_map = g 1000 1000 1 lxc.id_map = u 1001 101001 64535 lxc.id_map = g 1001 101001 64535

Re: [lxc-users] How to mount directories from $HOME into an unprivileged container?

2015-08-17 Thread Serge Hallyn
Quoting Karma Kolabor (collabori...@gmail.com): > Hi, > > I am trying to mount a directory in a user home into an unprivileged > container run by a user (not root). > > LXC generally works fine here, I just fight with the uid mapping details. > > I added a line like this > > lxc.mount.entry =

[lxc-users] How to mount directories from $HOME into an unprivileged container?

2015-08-17 Thread Karma Kolabor
Hi, I am trying to mount a directory in a user home into an unprivileged container run by a user (not root). LXC generally works fine here, I just fight with the uid mapping details. I added a line like this lxc.mount.entry = /home/user/sites home/ubuntu/sites none bind 0 0 to the file /home

Re: [lxc-users] LXC and Unprivileged containers - purpose and status - talks

2015-08-17 Thread Narcis Garcia
I've read somewhere: "Ubuntu is also one of the few (if not only) Linux distributions to come by default with everything that's needed for safe, unprivileged LXC containers" - and not LTS versions. El 17/08/15 a les 06:48, Benoit GEORGELIN - Association Web4all ha escrit: > Hi lxc-users :) > >

[lxc-users] Mount directory with space in the path

2015-08-17 Thread Valerio Mariani
Dear All, I have been using this syntax to mount some of the hosts's directories in the container: lxc config device add gp sources disk source=$HOME/p/gratipay.com path=/opt/srv However, I don't see to be able to use a host path (source=) with a space in it. I tried using forward slash (\),