/ChrootTool

Helper to build Chroot

Primary LanguageShell

#Chroot Tools

Copy libraries for a minimal chroot environement. All datas are in jail folder.

Create Chroot

With your favorite command.

./Chrootbin.sh /bin/bash
./Chrootbin.sh $(cat list)

Use-it for docker :)

To use simple chroot inside docker container.

./Chrootbin.sh /bin/busybox
cd jail
docker build -t simple .
docker run -it --rm  simple /bin/busybox sh

For namespace

Add simple commands into jail.

./Chrootbin.sh /bin/bash
systemd-nspawn  -D jail --network-veth  /bin/bash