Created
December 11, 2015 13:20
-
-
Save alban/2cc6db92fd123bd0724a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo ./try.sh | |
Pod 1: 37 mounts | |
Pod 2: 185 mounts | |
Pod 3: 1517 mounts | |
Pod 4: 66785 mounts | |
----------------------------------- | |
#!/bin/bash | |
RKTDIR=/tmp/rkt-tests-$RANDOM/var/lib/rkt/ | |
mkdir -p $RKTDIR | |
cd $RKTDIR | |
start_new_rkt_fly() { | |
UUID=$1 | |
STAGE2ROOT=pods/run/$UUID/stage1/rootfs/opt/stage2/myapp/rootfs/ | |
mkdir -p ${STAGE2ROOT}/{bin,etc,usr,lib,host-root} | |
mount --rbind / ${STAGE2ROOT}/host-root | |
mount --make-rshared ${STAGE2ROOT}/host-root | |
} | |
for i in $(seq 1 4) ; do | |
start_new_rkt_fly $i | |
echo "Pod $i: "$(mount|grep '/tmp/rkt-test[s]'|wc -l)" mounts" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment