gcmurphy / containers-from-scratch-rs

Port of Liz Rice's containers-from-scratch code to rust as a learning exercise.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

containers-from-scratch - Rust edition.

About

Liz Rice gives a most excellent talk about Linux namespaces in which she builds a container from the ground up. This is a rust port of her example code. Like the original there is still a lot that can be added to further isolate the process. I might add the rootless container part at a later stage.

Usage

  1. cargo build
  2. sudo target/debug/ctr /bin/sh
Caveats
  • Requires root permissions
  • $HOME/rootfs-x86_64 will be the basis of the chroot

About

Port of Liz Rice's containers-from-scratch code to rust as a learning exercise.


Languages

Language:Rust 100.0%