I have the lxc, it has a running application. To edit the code of this application on own computer(Ubuntu 13.10), I want to mount a directory lxc. How can this be done?
If you want to mount automatically a directory inside the lxc each time you start the lxc you can use the lxc.mount.entry
directory inside /var/lib/lxc/ubuntu_12_04/config
file. With Something like:
lxc.mount.entry = /mnt/lxc home/ none bind 0 0
This will mount /mnt/lxc
inside the lxc root filesystem aka rootfs at home/
directory.