Skip to content

raveltan/boks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boks

A simple UN*X container written in C.

WARNING: Boks currently only tested on linux. functionallity under other UN*X based distribution is not tested.

Get the filesystem

Filesystem in boks acts like docker images, this allows container to have it's own PID and system root.

In order to get the filesystem, first option on getting the filesystem is by clonning the repo and extract it from the ubuntufs.tar, the filesystem available in the repo is based on the ubuntu 20.04 docker image.

git clone https://github.com/raveltan/boks.git
cd boks
tar xf ubuntufs.tar -C {{destionation}}

or you can also download it manually by using docker

docker run -d --rm --name ubuntufs ubuntu:20.04 sleep 1000
docker export ubuntufs -o ubuntufs.tar
docker stop ubuntufs
mkdir -p ~/ubuntufs
tar xf ubuntufs.tar -C ~/ubuntufs/

Running Boks

The easiest way to run boks is by getting the binary executable from the release section. You can also build boks from scratch.

sudo BOKS_IMAGE={{environment}} ./boks {{command}} {{args..}}

As boks uses CAP_SYS_ADMIN capability boks needs to be run as root.

Building Boks

To build boks, make sure that you have a recent version of C compiler and make

Boks release is build using gcc, clang compatibility is not guaranteed.

git clone https://github.com/raveltan/boks.git
cd boks
make

References

About

A simple linux container written in C.

Resources

License

Stars

Watchers

Forks

Packages

No packages published