idetatsu / rocker

Rocker is a minimal docker implementation for educational purposes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust + Docker = Rocker🤘

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.

スクリーンショット 2021-04-08 1 28 27

Usage

  • Run a container
rocker run [OPTIONS] <image-name> <command>

OPTIONS:
        --cpus <cpus>
    -m, --mem <mem>
        --pids-limit <pids-limit>

スクリーンショット 2021-04-08 1 34 30

  • List running containers
rocker ps

スクリーンショット 2021-04-08 1 35 00

  • List images
rocker images

スクリーンショット 2021-04-08 1 36 21

  • Run a command in the existing container
rocker exec <container-id> <command>

スクリーンショット 2021-04-18 15 41 40

  • Delete an image
rocker rmi <image-hash>

Requisites

Build

$ cargo build

The executable file is located at ./target/x86_64-unknown-linux-gnu/debug/rocker

About

Rocker is a minimal docker implementation for educational purposes.


Languages

Language:Rust 100.0%