create repro for bug in runc

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle
2018-03-14 14:06:56 -04:00
parent 621bb0ca70
commit 6ebc157029
3 changed files with 48 additions and 0 deletions

15
runc-rootless/start.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -e
set -o pipefail
mkdir -p "${HOME}/rootfs"
mkdir -p "${HOME}/containerroot"
# untar the rootfs
tar -C "${HOME}/rootfs" -xf "${HOME}/busybox.tar"
# create the spec
runc spec --rootless
# run the container
runc --root "${HOME}/containerroot" run mycontainer