diff --git a/lib/general.sh b/lib/general.sh index 52b222c7d6..e08f28e11d 100644 --- a/lib/general.sh +++ b/lib/general.sh @@ -1302,7 +1302,11 @@ prepare_host() fi if grep -qE "(Microsoft|WSL)" /proc/version; then - exit_with_error "Windows subsystem for Linux is not a supported build environment" + if [ -f /.dockerenv ]; then + display_alert "Building images using Docker on WSL2 may fail" "" "wrn" + else + exit_with_error "Windows subsystem for Linux is not a supported build environment" + fi fi # build aarch64