Posted 2025-06-04Updated 2025-06-0522 minutes read (About 3288 words)容器实现原理Linux 内核的 Namespace 和 Cgroups 可以让程序在一个资源可控的独立(隔离)环境中运行,这就是容器运行运用到的核心技术。Read more
Posted 2025-06-04Updated 2025-06-043 minutes read (About 492 words)容器数据卷挂载实现容器的启动运用到了 OverlayFS,而容器的数据持久化就需要用到数据卷,数据卷的实现就不是使用 OverlayFS 了,Docker 提供了四种挂载类型的实现: Volume mounts Bind mounts tmpfs mounts Named pipes Read more
Posted 2025-06-03Updated 2025-06-0444 minutes read (About 6607 words)容器文件系统实现容器的核心技术是由 Linux Namespace + Cgroups 实现的。而容器的文件系统是通过 Mount Namespace 实现。Read more
Posted 2025-06-03Updated 2025-06-0314 minutes read (About 2151 words)容器网络实现容器的网络是基于 Linux 的 网络命名空间(Network Namespace) 和 虚拟网络设备(veth pair) 实现的。Read more
Posted 2024-03-31Updated 2025-05-293 minutes read (About 436 words)cgroup netns mountns随记CgroupCgroup 即 Control Group,是一种 Linux 内核机制,它允许对进程进行资源控制和管理。Cgroup 可以限制进程的 CPU 使用率、内存使用量、磁盘 I/O 等资源。Read more