Rocker
is a minimal docker implementation for educational purposes inspired by gocker. Rocker
uses linux kernel features (namespace, cgroup, chroot etc.) to isolate container processes and limit available resourses.
- Run a container
rocker run [OPTIONS] <image-name> <command>
OPTIONS:
--cpus <cpus>
-m, --mem <mem>
--pids-limit <pids-limit>
- List running containers
rocker ps
- List images
rocker images
- Run a command in the existing container
rocker exec <container-id> <command>
- Delete an image
rocker rmi <image-hash>
- libdbus (1.6 or higher)
$ cargo build
The executable file is located at ./target/x86_64-unknown-linux-gnu/debug/rocker