[lxc-users] Why contains have to run the same kernel as the host

Fajar A. Nugraha list at fajar.net
Mon Jan 6 14:38:11 UTC 2014


On Mon, Jan 6, 2014 at 8:02 PM, Du Jun <dj199008 at gmail.com> wrote:
> @Laut. Since container use the kernel of host, can we remove the kernel file
> from lxc template while booting a container?

If you mean "can I have a container running without a kernel package
installed INSIDE the container filesystem", then yes. IIRC the ubuntu
template does exactly that.

In fact, containers installed using the busybox template pretty much
only have the busybox binary (plus supporting files and directories),
at only 2MB or so in size. No kernel or other libraries needed to run
a shell.

-- 
Fajar


More information about the lxc-users mailing list