A linux container (toy) written in C/C++.
- extract busybox.tar to somewhere root user can access.
- clone limiter and compile it.
git clone https://github.com/gl1n/limiter.git
mkdir build && cd build
cmake ..
make
- run limiter.
cd build
sudo ./limiter run /path/to/busybox_dir sh
- friendly interface.
- cpu constraint.
- memory constraint.
- running image.
- user namespace mapping.
- image packing.
- bind mounting
This project was implemented based on cgroup v2. So be sure your linux is supporting cgroup v2 not v1.
You can run ./limiter help
to print help message.