Update container runtime guidance

This commit is contained in:
yeasy
2026-03-16 20:49:00 -07:00
committed by Baohua Yang
parent b5830eb690
commit 2b82e16bcb
22 changed files with 115 additions and 49 deletions

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