[lxc-users] running NFS and cifs in a container.

Jäkel, Guido G.Jaekel at dnb.de
Tue Mar 3 08:21:23 UTC 2015


>>>>  i did not get the abstarct resource part. Can't mount ext4 from being inside a container after exporting the required
>volume to it. ???

Dear Mohan,

IMHO it's best practice to have an virtual environment like a LX-Container as much as independent from a concrete hosting environment. And the setup to support and run the Container should be completely outside, but nothing has to be configured inside. By other words, the container should not mount filesystems, it should get something mounted from outside by the host. It should not configure the network, it should get it configured from outside (, e.g by use of DHCP).


Let's imagine an application in your container, i.e. an webserver, expect to serve data from within /var/www/ . For a first sprint, your Container's rootfs may contain this directory tree. But maybe it's more appropriate to separate the application and the data, because it's managed by different responsibilities. Then, at the host you might bind-mount this location inside the Container from a completely different location to keep this tree outside the containers rootfs. And more, if your Webserver Container is e.g a member of a cluster, this data source might be also mounted by the (or even by a bunch of) LXC-Hosts from an NFS server.

Greetings

Guido


More information about the lxc-users mailing list