...
Warning |
---|
Crap... I got this working late one night and don't remember the steps now.... below steps are not quite correct... will have to reverse engineer what I got working... Think basic steps are, - make top level directory on host, /opt/lxc
- go into container and create the directory ie mkdir /opt/confluence-share-data as whatever user you need in this case serveradmin
- shutdown container
- modify config of container,
- lxc.mount.entry = /opt/lxc/confluence-share-data /var/lib/lxc/t01app/rootfs/opt/confluence-share-data none bind.rw 0.0
- Note that you never create the confluence-share-data folder in the host just the lxc folder
Bootup container and it will create in the host the folder /opt/lxc/confluence-share-data if it does not already exist
|
In this example, we want to mount a shared directory from the host system to be accessible to one or more containers,
...