1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-14 18:43:01 +01:00

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.
This commit is contained in:
Maxim Biro 2022-01-05 15:52:57 -05:00
parent b71c6a3792
commit 55944aa5a9
No known key found for this signature in database
GPG Key ID: AB3AD9896472BFA4

View File

@ -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