mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-08 22:32:39 +01:00
create repro for bug in runc
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
15
runc-rootless/start.sh
Executable file
15
runc-rootless/start.sh
Executable 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
|
||||
Reference in New Issue
Block a user