Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 679 Bytes

File metadata and controls

24 lines (16 loc) · 679 Bytes

Container

This is the sample code for the blog post I wrote on how to create a your own containerization engine (similar to Podman / Docker).

To run this example just need to make sure you have this components:

  • g++
  • gcc
  • make
  • And of course a Linux 2.5.+ or above.
git clone https://github.com/cesarvr/container
cd container 

# run Make 
make 

sudo ./container 

This code creates a container for the bash process, by creating a new process and modifying the namespaces, cgroup rules, etc.