Skip to content

MichaelAronsen/rollcage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollcage

Build Status

About

status

Proof of concept pseudo-reimplementation of iocage in Go, with intent to focus on "thickjails".

currently implemented commands

Usage

Create a config file at /usr/local/etc/rollcage.conf:

# zfsroot is the location of the zfs dataset where rollcage lives
zfsroot = "tank/iocage"

Commands

The current list of supported commands is as follows:

chroot      Chroot into jail, without actually starting the jail itself
console     Execute login to have a shell inside the jail.
destroy     destroy jail
df          List disk space related information
exec        Execute login to have a shell inside the jail.
get         get list of properties
list        List all jails
reboot      reboot jail
restart     restart jail
rollback    Rollback jail to a particular snapshot
runtime     show runtime configuration of a jail
set         Set a property to a given value
snaplist    List all snapshots belonging to jail
snapremove  Remove snapshots belonging to jail
snapshot    Create a zfs snapshot for jail
start       start jail
stop        stop jail
update      update a jail to the latest patchlevel
version     Print the version

Building

Currently required to build:

  • a working Go (1.5 recommended) install
  • gb
  • make (bsdmake, not gnu-make)

Building:

$ make
Available targets:
  help                this help
  clean               clean up
  all                 build binaries and man pages
  test                run tests
  cover               run tests with cover output
  build               build all binaries
  man                 build all man pages

$ make build
Restoring deps...
Building rollcage...
...

$ bin/rollcage version
rollcage no-version (go1.5.1,gc-amd64)

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.7%
  • Makefile 3.3%