[lxc-users] Setting a mount entry via fstab or as lxc.mount.entry in LXC config file
Serge Hallyn
serge.hallyn at ubuntu.com
Wed Feb 12 21:43:55 UTC 2014
Quoting David Shwatrz (dshwatrz at gmail.com):
> Hi, LXC users,
>
> Is there any difference between
> setting a mount entry via /etc/fstab in the root filesystem of a
> container or as lxc.mount.entry in the LXC config file?
Yes - lxc.mount.entry mounts are done by lxc, before the pivot_root.
So you can bind-mount your host home directory in the container, for
instance.
/etc/fstab in the rootfs is handled one way or another by the
container's init system, and long after pivot_root.
-serge
More information about the lxc-users
mailing list