📜  LXC和Docker容器之间的区别

📅  最后修改于: 2021-08-24 16:44:03             🧑  作者: Mango

1. LXC:
LXC是Linux容器的缩写,它是一个操作系统,用于通过单个Linux内核在受控主机上虚拟地运行多个Linux系统。 LXC与内核的Cgroup捆绑在一起,以提供用于进程和网络空间的功能,而不是创建完整的虚拟机,并为应用程序提供隔离的环境。
LXC提供的功能:

  1. 它提供了内核名称空间,例如IPC,安装,PID,网络和用户。
  2. 它提供内核功能。
  3. 对照组(Cgroups)。
  4. Seccomp配置文件

2. Docker:
Docker是一个开放源代码工具,用于在集中式平台上创建,部署和工作应用程序。这使主机的操作系统通过容器以相同的Linux内核运行应用程序,而不是创建整个虚拟机。使用docker容器,您无需照顾Ram和磁盘空间的分配。它能够自行处理要求。
Docker提供的功能:

  1. Docker是可轻松配置的。
  2. 技术可行性和提高的生产率。
  3. 通过诸如秘密检查和秘密创建等命令来保护服务。
  4. 提供应用程序隔离,并且没有容器依赖于其他任何容器。

LXC和Docker之间的区别:

Parameter LXC Docker
Developed by LXC was created by IBM, Virtuozzo, Google and Eric Biederman. Docker was created by Solomon Hykes in 2003.
Data Retrieval LXC does not support data retrieval after it is processed. Data retrieval is supported in Docker.
Usability It is a multi-purpose solution for virtualization. It is single purpose solution.
Platform LXC is supported only on Linux platform. Docker is platform dependent.
Virtualization LXC provides us full system virtualization. Docker provides application virtualization.
Cloud support There is no need for cloud storage as Linux provides each feature. The need of cloud storage is required for a sizeable ecosystem.
Popularity Due to some constraints LXC is not much popular among the developers. Docker is popular due to containers and it took containers to a next level.