Add warning when build environment is WSL2 docker (#3341)
* Add warning when build environment is WSL2 docker * change warning message for WSL2 Docker Co-authored-by: lededev <lededev@noreplay.github.com>
This commit is contained in:
parent
4c913692af
commit
1e08570817
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user