ruri:Lightweight, User-friendly Linux-container Implementation
rurima:Run docker & LXC images without docker or LXC program, without kernel features support, even without root privileges!
rootfstool:A tool to get linux container rootfs from Lxc-image mirrors
ruri and rurima are published with the MIT License, and rootfstool is Apache-2.0.
You can use these tools to make your own container manager, it will be very easy.
ruri is a lightweight and simple container backend.
ruri is easy to use, you just need to unset LD_PRELOAD
and run it.
ruri is more secure than chroot/unshare command.
ruri is more powerful than chroot/unshare command.
Or you can just modify the source for your project.
rootfstool d -m main -d alpine -v edge
this command will download an alpine edge rootfs.
For ruri:
sudo mkdir test
sudo tar -xvf rootfs.tar.xz -C ./test
For proot:
mkdir test
proot --link2symlink -0 tar -xvf rootfs.tar.xz -C ./test
For ruri:
cp /data/data/com.termux/files/usr/share/daijin/fixup.sh ./test/tmp/
unset LD_PRELOAD
ruri ./test /tmp/fixup.sh
For proot:
You should use the proot_start.sh in src/share
And you should make sure src/share/proc.tar.xz is unpacked to /data/data/com.termux/files/usr/share/daijin/proc/
# proot_start.sh will automatically mount $TMPDIR to /tmp
cp /data/data/com.termux/files/usr/share/daijin/fixup.sh /data/data/com.termux/files/usr/tmp
./proot_start.sh -r ./test /tmp/fixup.sh
For ruri:
unset LD_PRELOAD
ruri ./test
For proot:
You should use the proot_start.sh in src/share.
And you should make sure src/share/proc.tar.xz is unpacked to /data/data/com.termux/files/usr/share/daijin/proc/
./proot_start.sh -r ./test
Very Simple, as you can see.
「Shine as you can be」