Is it possible to run Docker or LXC containers within a Linux VServer container.
Does it require special kernel modules to be installed on the VServer.
Is it possible to run Docker or LXC containers within a Linux VServer container.
Does it require special kernel modules to be installed on the VServer.
I do not know.
If the required kernel features are available (see below), it may be possible. Both run in userland and use these kernel features to isolate processes.
No, neither LXC nor Docker require special kernel modules. However they use kernel features (CGroups, namespaces, …) which may or may not be there in a given kernel version.
LXC requires Linux >= 2.6.32, >= 3.8 for lxc-attach, >= 3.12 for unprivileged containers
Docker requires Linux >= 3.10, recommends the latest version
If your kernel meets the requirements, give it a try. If it is too old, it depends:
If your VServer installation is managed by yourself, it might be possible to upgrade to a sufficient version. However, everything newer than 2.6.22.19 is only available as Experimental Patches.
If it is a hosted VServer, it depends on your hoster.