Update container runtime guidance

This commit is contained in:
yeasy
2026-03-16 20:49:00 -07:00
committed by Baohua Yang
parent b9c63a5133
commit c02a8a41cd
22 changed files with 115 additions and 49 deletions
+12
View File
@@ -200,6 +200,18 @@ $ docker run --rm --cpus=1 stress --cpu 4
| PSI (压力监控)| ❌ | ✅ |
| rootless 容器 | 部分支持 | 完整支持 |
#### Docker 对 cgroups v2 的支持
Docker 19.03+ 默认优先使用 cgroups v2(如果系统支持),提供更好的性能和资源隔离。如果需要明确控制或回退到 v1,可以通过 Docker 守护进程配置文件 `/etc/docker/daemon.json` 修改 `cgroup-driver` 参数:
```json
{
"cgroup-driver": "systemd"
}
```
常见的 `cgroup-driver` 值包括 `systemd` (推荐) 和 `cgroupfs`。重启 Docker 守护进程后生效。
#### 检查系统使用的版本
```bash