Re: How to share a folder between containers [message #42168 is a reply to message #42129] |
Mon, 14 March 2011 13:00  |
hybrid512
Messages: 4 Registered: December 2010 Location: France
|
Junior Member |
|
|
Easiest and best way to do this is to do like this :
- create some folder on your host filesystem
- bind this folder in your containers
To do that, the best way is to create a <CTID>.mount in your /etc/vz/conf directory which will look like this :
============================================================ ===
#!/bin/bash
source /etc/vz/vz.conf
source ${VE_CONFFILE}
mount -n --bind /common-stuff ${VE_ROOT}/common-stuff
============================================================ ===
Off course, /common-stuff must exist in your container but with this, /common-stuff will be automatically binded when you start your container.
Regards,
|
|
|