Docker 宿主机的系统是否对容器使用的系统选择有影响?
PHP中文网
PHP中文网 2017-04-25 09:02:02
0
2
742

例如,我宿主机使用的系统是ubuntu,那么,我的容器是否也应该使用ubuntu的系统以达到更好的性能和减少宿主机的性能消耗?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
Peter_Zhu

Docker is based on the Linux kernel, so when choosing a host machine, you must choose a system that supports Docker, namely:

  • Linux version 3.8 or higher.

  • Cgroups and namespaces must be available

As for distributions, they just install a variety of different packages in a Linux kernel, and the core is still Linux.

You can understand it as, there is a large open space (system hardware resources), which was transformed into a foundation (Linux kernel), the host system used part of the area to build some houses (host system), and you drove a RV to live in it. (Docker). As long as the foundation allows it (the Linux kernel allows it), you don't have to worry about how the house next to it is built. Of course, if the house collapses and the water, electricity and gas are shut down (the host computer crashes), your RV will also be affected.

黄舟

You can use both, there is no difference

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template