Bindfs and fuse

Got it going, with a horrible hack.

In the container config:
lxc.hook.start-host = /usr/local/bin/fuse.hook

/usr/local/bin/fuse.hook:


at now + 1 minute <<END 2>>/var/lib/lxc/rh-wptest2/hook.error
/usr/local/bin/fuse.hook.s2
END

/usr/local/bin/fuse.hook.s2:

lxc-device -n rh-wptest2 add /dev/fuse
lxc-attach -n rh-wptest2 mount /home/richard/testsite/doc_root

I hate almost everything about this solution.

But in the absence of

  1. A hook that runs after the container init has started
  2. understanding how lxc-device actually works
  3. understanding how to make lxc.hook.autodev work
  4. Anybody who knows this stuff reading this thread and/or caring :slight_smile:

… it seems to be the best I can manage for now.

Cheers,
Richard