Skip to content
forked from daikimiura/rocker

Rocker is a minimal docker implementation for educational purposes.

Notifications You must be signed in to change notification settings

idetatsu/rocker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%