Unverified Commit 28e37e89 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Detect Docker Desktop (#496)

parent 1b5806bf
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -33,12 +33,16 @@ if [[ "$KVM" != [Nn]* ]]; then
    KVM="N"
    if [[ "$OSTYPE" =~ ^darwin ]]; then
      warn "you are using MacOS which has no KVM support, this will cause a major loss of performance."
    else
      if [[ $(grep -i Microsoft /proc/version) ]]; then
        warn "you are using Windows 10 which has no KVM support, this will cause a major loss of performance."
      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