feat: Detect Docker Desktop (#63)

This commit is contained in:
Kroese 2024-05-11 22:05:35 +02:00 committed by GitHub
parent cc86e245cc
commit ec7df3a74c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,9 +27,13 @@ if [[ "$KVM" != [Nn]* ]]; then
if [[ "$OSTYPE" =~ ^darwin ]]; then if [[ "$OSTYPE" =~ ^darwin ]]; then
warn "you are using MacOS which has no KVM support, this will cause a major loss of performance." warn "you are using MacOS which has no KVM support, this will cause a major loss of performance."
else else
error "KVM acceleration not available $KVM_ERR, this will cause a major loss of performance." if grep -qi Microsoft /proc/version; then
error "See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended)." warn "you are using Windows 10 which has no KVM support, this will cause a major loss of performance."
[[ "$DEBUG" != [Yy1]* ]] && exit 88 else
error "KVM acceleration not available $KVM_ERR, this will cause a major loss of performance."
error "See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended)."
[[ "$DEBUG" != [Yy1]* ]] && exit 88
fi
fi fi
fi fi