On Ubuntu, LXC has a nice feature, that allows to execute the script automatically upon boot, if the link to the configuration file is present on /etc/lxc/auto.

Unfortunately I need to call a mount-binding script on host before, so my container can see an external directory.

The script is simple:
mount --bind /mnt/shared-folder /mnt/shared-folder
mount --make-inbindable /mnt/shared-folder
mount --make-shared /mnt/shared-folder


--

Adam Ryczkowski
Skype:sisteczko <skype:sisteczko>

_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to