mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
16 lines
278 B
Bash
16 lines
278 B
Bash
|
#!/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
|