【发布时间】:2020-09-13 08:49:29
【问题描述】:
我想了解LXC,偶然发现了这个网站:https://linuxcontainers.org/lxc/introduction/;在这个网站上,它谈到了LXC、LXD等等。
我有点困惑,我的印象是 LXC 是一个 Linux 内核特性,所以它应该存在于内核本身中。但是,查看上面的站点即:https://linuxcontainers.org/lxc/introduction/,当我们说 LXC(内核功能)时,这是否相同?或者LXC是https://linuxcontainers.org/lxc/introduction/提供给Linux内核的?
我如何理解这种细微的差别?
【问题讨论】:
-
I am under the impression that LXC is a Linux kernel feature, so it should be present in Kernel您链接的链接中的第一句话是LXC is a userspace interface,然后在它下面是LXC uses the following kernel features。它不是“内核功能”,而是“用户空间界面”。 -
感谢您的评论,如果可以的话,您能详细说明一下吗?据我了解:Linux内核提供--> Cgroups、命名空间(所以它们是纯Linux内核特性);和 LXC(来自 linuxcontainers)使用这些功能?这是正确的解释吗?