Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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,

  1. make top level directory on host, /opt/lxc
  2. go into container and create the directory ie mkdir /opt/confluence-share-data as whatever user you need in this case serveradmin
  3. shutdown container
  4. modify config of container, 
    1. lxc.mount.entry = /opt/lxc/confluence-share-data /var/lib/lxc/t01app/rootfs/opt/confluence-share-data none bind.rw 0.0
    2. Note that you never create the confluence-share-data folder in the host just the lxc folder
  5. 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,

...