#container #lib #cli #enter

bin+lib container-rs

simple container cli and lib!

4 releases

0.1.3 Apr 21, 2022
0.1.2 Apr 17, 2022
0.1.1 Aug 13, 2021
0.1.0 Aug 10, 2021

#7 in #enter

MIT license

3MB
751 lines

prepare

mkdir rootfs

wget https://www.busybox.net/downloads/binaries/1.31.0-defconfig-multiarch-musl/busybox-x86_64 -O rootfs/busybox 

start container

sudo ./target/debug/container start -r rootfs -i "/busybox" -a "sh"

enter container

sudo ./target/debug/container enter -p PID -c "/busybox sh"

Dependencies

~11–22MB
~290K SLoC