Find a file
Jess Frazelle 66e393036f update travis
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
2019-05-25 16:55:09 -04:00
container update vendor 2018-09-25 12:27:46 -04:00
examples update travis 2019-05-25 16:55:09 -04:00
vendor fix vendor 2018-09-25 12:30:01 -04:00
.gitignore update 2018-09-25 12:40:34 -04:00
.travis.yml update travis 2019-05-25 16:55:09 -04:00
basic.mk update travis 2019-05-25 16:55:09 -04:00
Gopkg.lock update vendor 2018-09-25 12:27:46 -04:00
Gopkg.toml fix chown and seccomp 2018-03-22 09:22:44 -04:00
LICENSE
Makefile cheange order 2018-09-25 12:48:37 -04:00
README.md Update ToC for README.md 2018-12-29 16:05:23 +00:00
VERSION.txt update 2018-09-25 12:40:34 -04:00

binctr

Build Status Go Report Card GoDoc

Create fully static, including rootfs embedded, binaries that pop you directly into a container. Can be run by an unprivileged user.

Check out the blog post: blog.jessfraz.com/post/getting-towards-real-sandbox-containers.

This is based off a crazy idea from @crosbymichael who first embedded an image in a binary :D

HISTORY: This project used to use a POC fork of libcontainer until @cyphar got rootless containers into upstream! Woohoo! Check out the original thread on the mailing list.

Table of Contents

Checking out this repo

$ git clone git@github.com:genuinetools/binctr.git

Building

You will need libapparmor-dev and libseccomp-dev.

Most importantly you need userns in your kernel (CONFIG_USER_NS=y) or else this won't even work.

# building the alpine example
$ make alpine
Static container created at: ./alpine

# building the busybox example
$ make busybox
Static container created at: ./busybox

# building the cl-k8s example
$ make cl-k8s
Static container created at: ./cl-k8s

Running

$ ./alpine
$ ./busybox
$ ./cl-k8s

Cool things

The binary spawned does NOT need to oversee the container process if you run in detached mode with a PID file. You can have it watched by the user mode systemd so that this binary is really just the launcher :)