lixd / mydocker

参考《自己动手写 docker》从零开始实现一个简易的 docker 以及相关教程。Build a simple Docker from scratch along with related tutorials.
https://www.lixueduan.com/categories/docker/
MIT License
335 stars 36 forks source link

cgroup v1和cgroup v2 #2

Closed Chen-Litao closed 7 months ago

Chen-Litao commented 7 months ago

请问当前版本是基于cgroup v1,能否兼容cgroup v2呢

lixd commented 7 months ago

@Chen-Litao cgroup v2 需要重新实现,https://github.com/lixd/mydocker/tree/feat-cgroup-v2/cgroups 简单实现了一下,仅供参考