[Lxc-users] Using common rootfs for multiple containers

Rob van der Hoeven robvanderhoeven at ziggo.nl
Tue Jul 9 06:05:22 UTC 2013


> I would like it know is it possible to create a single rootfs (might
> be in read-only mode) and share it among multiple containers ?

At Dotcloud.com they use one basic OS rootfs. For each container they
mount this OS rootfs read-only and use a union file-system (AUFS) to add
a writable layer. Here are some pointers:

PAAS Under the Hood, Episode 3: AUFS
http://blog.dotcloud.com/kernel-secrets-from-the-paas-garage-part-34-a

Lightweight Virtualization with namespaces, cgroups, and unioning
filesystems:
http://blog.dotcloud.com/scale11 (excellent slides!)

Rob.
http://freedomboxblog.nl







More information about the lxc-users mailing list