The control group v2 version had been merged into master branch
See ioi/isolate
And check IOI-Isolate CG2 to setup cg2 version of isolate
Manual
Installation
Manaual
Environment
Switch cgroup version from v2 to v1
ioi/isolate
using cgroup v1, if your system using cgroupv2
you should switch it to v1
Steps
-
Edit /etc/default/grub.d/cgroup.cfg
file. If doesn’t exist, you could create it by yourself.
-
Edit etc/default/grob
file, adding following parameters.
-
Run sudo update-grub
to update your settings.
Run isolate
in Docker
在執行容器時因為isolate
需要用到cgroup,因此引此需要加上--privileged
這個Flag
Create Sandbox
isolate --cg --b <box-id> --init
Run Program
Contents
Test C Programe
References
自研沙箱Isolate学习
isolate Sandbox 使用