GithubHelp home page GithubHelp logo

boxer's Introduction

boxer

boxer offers stand-alone Linux containerization with no dependencies.

Getting Started

To compile and install boxer on your system, run

make
make install

To place the binary in your working directory instead, run

PREFIX='.' make install

Please note that both make install calls require root rights inorder to make the resulting boxer binary a setuid root.

Usage

Passing any command to boxer will execute the command inside a fresh container.

boxer COMMAND...

If no command is given, the login shell of the user will be started inside a container instead.

Cgroups

boxer allows you to setup cgroups via command line flags. Flags with the prefix cgroup. followed by the name of a cgroup subsystem and its parameter cause boxer to activate said cgroup inside the container and pass the option's value to the cgroup subsystem.

Example

The following call

boxer --cgroup.memory.limit_in_bytes=128m --cgroup.cpu.shares=512

activates the memory and cpu cgroup subsystems inside the container, with the container's memory limit set to 128 MB and the container's cpu shares set to 512.

Resource Limits

Similar to the cgroup command line flags, boxer supports setting resource limits via command line flags prefixed with rlimit.. To view all resources limits, run the prlimit command or read the prlimit(2) manual page.

Example

The following call

boxer --rlimit.fsize=1m --rlimit.nproc=4k

sets the maximum file size inside the container to 1 MB and the maximum number of processes that can be created inside the container to 4096.

License

boxer is released under MIT license. You can find a copy of the MIT License in the LICENSE file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.