Skip to content

Latest commit

 

History

History

05_run_container

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

demo #05 - create container

steps to reproduce

bash implementation

  1. run create.sh
./create.sh 
  1. in new container run
mount --bind image image
cd image
mkdir old_root

pivot_root . old_root 

ps a #nothing print because no proc
mount -t proc proc /proc

exec sh
  1. voiala - new container - use same checks like in unshare demo

perl implementation

run.pl doesn't work well yet!

(example) how to preapre base image?

gentoo image

wget http://ftp.fi.muni.cz/pub/linux/gentoo/releases/amd64/autobuilds/current-install-amd64-minimal/stage3-amd64-20170504.tar.bz2 sudo tar xz $HOME/Downloads/stage3-amd64-20170504.tar.bz2 --directory image

apline image

wget https://nl.alpinelinux.org/alpine/v3.5/releases/x86_64/alpine-minirootfs-3.5.2-x86_64.tar.gz sudo tar -xf alpine-minirootfs-3.5.2-x86_64.tar.gz --directory image