Simple container runtime implementation in Rust.
This repository contains a study-purpose container runtime written in Rust. It isolates the filesystem, processes, user namespace, and hardware resources.
Recommended: run this project inside the devcontainer. The runtime uses Linux
namespaces,cgroup v2,pivot_root, and privilegedmountoperations.
make dev-imagemake rootfscargo run -- run ./rootfs --cpus 1.0 --mem 536870912 --pids 1024 --uid 1000 --gid 1000 /bin/shInside the container, check:
id # uid=0(root), gid=0(root)
ps -a # only container-local processes
mount # isolated rootfs and procfsSee the detailed document in DOCS.md.