Skip to content

bxffour/namespaces-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

namespaces-go

namespaces-go used namespaces to run a shell in a sandboxed environment. This is a purely educational project as a result of my pursuit to understanding to fundamental cogs that make containers possible.

Demo

namespaces-go

Installation

$ git clone https://github.com/bxffour/namespaces-go.git
$ cd namespaces-go/

Build the binary

$ make build

Preparing rootfs

$ make assets/setup

Usage

Sandbox hardcoded rootfs

$ ./bin/ns

Sandbox rootfs provided through cmdline args

$ ./bin/ns /path/to/rootfs

Credit

  1. Namespaces in Go blog by Ed King - https://medium.com/@teddyking/namespaces-in-go-basics-
  2. Liz Rice's demo on containers - https://youtu.be/8fi7uSYlOdc

About

Sandboxing shell using linux namespaces

Resources

License

Stars

Watchers

Forks