dockerfiles/runc-rootless/start.sh
Jess Frazelle 6ebc157029
create repro for bug in runc
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-14 14:06:56 -04:00

16 lines
278 B
Bash
Executable File

#!/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