官术网_书友最值得收藏!

Docker containerization on Linux

Originally, Docker Engine was developed primarily for the Linux OS, which provides the following kernel features for the Docker runtime:

  • Kernel namespaces: This is the core concept for containers and makes it possible to create isolated process workspaces. Namespaces partition kernel resources (such as network stacks, mount points, and so on) so that each process workspace can access its own set of resources and ensures they can't be accessed by processes from other workspaces. This is what ensures the isolation of containers.
  • Control groups: Resource usage limits and isolation is a secondary core concept in containerization. On Linux, this feature is provided by cgroups, which enables resource limiting (CPU usage, RAM usage, and so on) and priority access to resources for one process or a group of processes.
  • Layer filesystem capabilities: On Linux, UnionFS is one of the many implementations of union mount  a file system service that allows files and directories coming from separate filesystems to be unified into one transparent, coherent filesystem. This feature is crucial for Docker container images that consist of immutable layers. During the container runtime, the read-only layers are transparently overlaid together with a writable container layer.

Docker Engine is responsible for providing a basic runtime for containers, abstracting container management, and exposing functionalities using the REST API to the client layer, such as the Docker CLI. The architecture of Docker on Linux can be summarized with the following diagram:

From a Linux OS perspective, the container runtime architecture is presented in the following diagram. This architecture applies to container engines on Linux in general, not only Docker:

Next, we will look at Docker containerization on Windows.

主站蜘蛛池模板: 汤阴县| 伊春市| 阜宁县| 营山县| 雷州市| 开封市| 陈巴尔虎旗| 佛冈县| 资溪县| 陵川县| 文昌市| 怀来县| 白水县| 钟山县| 汨罗市| 微山县| 东山县| 固安县| 罗山县| 柯坪县| 沙坪坝区| 衡阳县| 格尔木市| 佛坪县| 建德市| 万盛区| 华蓥市| 廊坊市| 思南县| 陵川县| 铜山县| 澄迈县| 盐亭县| 陕西省| 定西市| 东山县| 抚顺市| 兖州市| 邵阳县| 定南县| 竹溪县|