From 55944aa5a9c39be7f081296f304f91bc44bd02e5 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Wed, 5 Jan 2022 15:52:57 -0500 Subject: [PATCH] Remove broken Docker check The Docker detection method doesn't work on cgroup v2 systems, so the script just keeps erroring out. There doesn't seem to be a simple way to detect that we are running inside a Docker container, so it makes sense to drop that check altogether. --- script/build-minimal-static-toxic.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/script/build-minimal-static-toxic.sh b/script/build-minimal-static-toxic.sh index 928248e..3709b1d 100755 --- a/script/build-minimal-static-toxic.sh +++ b/script/build-minimal-static-toxic.sh @@ -64,12 +64,6 @@ set -eu ARTIFACT_DIR="/artifact" TOXIC_SRC_DIR="/toxic" -# Make sure we run in the expected environment -if ! grep -q 'docker' /proc/1/cgroup -then - echo "Error: This script should be run inside a disposable Docker container as it might modify system files in ways that would break a real system." - exit 1 -fi if [ ! -f /etc/os-release ] || ! grep -qi 'Alpine Linux' /etc/os-release then