Skip to content

gl1n/limiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

A linux container (toy) written in C/C++.

How to use

  1. extract busybox.tar to somewhere root user can access.
  2. clone limiter and compile it.
git clone https://github.com/gl1n/limiter.git
mkdir build && cd build
cmake ..
make
  1. run limiter.
cd build 
sudo ./limiter run /path/to/busybox_dir sh

Todo

  • friendly interface.
  • cpu constraint.
  • memory constraint.
  • running image.
  • user namespace mapping.
  • image packing.
  • bind mounting

Note

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.

About

A linux container toy written in C/C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published