Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

Container execution example

Just an example of running a container using direct syscalls on C.

Running

To build run make. To run, first extract a filesystem to a directory of name "rootfs". Then run:

./cnt /bin/ls /
set up pivot root
bin dev home lib64	mnt proc run srv tmp var
boot etc lib media	opt root sbin sys usr

The program requires CLONE_NEWUSER support on the kernel, otherwise will you need to run as root.

About

Example C container

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages