Hi John, On Tue, Dec 20, 2016 at 10:39:07PM +0100, [email protected] wrote: > Hello, > > I have a directory on my host system and want to create several containers > with the same users inside. I would like to pass the directory through to > each container and allow the users to write and read on it. The network > connection should be done using macvlan. > The howtos I have read so far show how to set up lxd, which works very > well on my 16.04 host. Starting a container works out of the box as > unpriviliged user as well. > > My questions: > Is it even possible to share one directory on the host with several > container? > All the howtos I could find mention some commands, that need to be > applied, but they do not tell me about the commands I need to type in to > make it work: > > > "That means you can create a container with the following configuration: > > lxc.id_map = u 0 100000 65536 > > lxc.id_map = g 0 100000 65536" > > There is a big list of possible options on github, but where does it tell > how to apply them? > > Does someone know a detailed howto, that describes a similiar setup like > mine?
http://tycho.ws/blog/2016/12/uidmap.html is a blog post I wrote a while ago talking about how to set this up with your home directory. You can mimic the settings for whatever user map you want, though. Cheers, Tycho > Every time I read something, I feel like missing something important, > because I could not find a coherent compendium of possible options on how > to do something. > > kind regards, > John > _______________________________________________ > 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
