Quoting Steve Bakke (sba...@netzyn.com):
> Would like to give a running container additional access to 
> directories/mounts from outside a container.  Do not want the container 
> itself to have this ability.  Tried from outside the container, both mounting 
> to a directory within the container and also to create a symbolic link to a 
> container directory.  Neither approach worked - from within the container, 
> directory was empty.
> 
> Can this be done?
> 
> Steve

It can.  You need to set up mounts propagation so that the mount done
on the host gets forwarded to the container.  How to do so has been
discussed here before, and I wrote about it here:
http://s3hh.wordpress.com/2011/09/22/sharing-mounts-with-a-container/

In the comments to that, Arie links to some scripts he wrote to
do this.

Providing this support by default through a /shared is also on the
agenda for the lxc UDS discussion next week.

-serge

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to