1. LXC :
LXC 是 Linux Containers 的缩写,它是一种操作系统,用于通过单个 Linux 内核在受控主机上虚拟运行多个 Linux 系统。 LXC 与内核的 Cgroups 捆绑在一起,为进程和网络空间提供功能,而不是创建一个完整的虚拟机,并为应用程序提供一个隔离的环境。
LXC 提供的功能:
- 它提供内核命名空间,例如 IPC、挂载、PID、网络和用户。
- 它提供内核功能。
- 对照组(Cgroups)。
- Seccomp 配置文件
2. 码头工人:
Docker 是一种开源工具,用于在集中式平台上创建、部署和运行应用程序。这使得主机的操作系统通过容器运行具有相同 Linux 内核的应用程序,而不是创建一个完整的虚拟机。使用 docker 容器,您无需处理 Ram 和磁盘空间分配。它能够自行处理需求。
Docker 提供的功能:
- Docker 是快速且易于配置的。
- 技术可行性和生产力提高。
- 通过秘密检查和秘密创建等命令保护服务。
- 提供应用程序隔离并且没有容器依赖于任何其他容器。
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. |