aboutsummaryrefslogtreecommitdiff
path: root/run-docker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run-docker.sh')
-rwxr-xr-xrun-docker.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/run-docker.sh b/run-docker.sh
new file mode 100755
index 0000000..f4093d2
--- /dev/null
+++ b/run-docker.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+echo "installing binfmt hooks because alarm is bad and it keeps breaking on reboot"
+echo -1 | sudo tee /proc/sys/fs/binfmt_misc/qemu-x86_64
+docker run --privileged --rm tonistiigi/binfmt --install amd64
+
+echo "actually running alpine"
+docker run -it --mount type=bind,src=$(dirname "$0"),target=/workspace --platform linux/amd64 --rm alpine:latest