Skip to content

Commit

Permalink
Issue #2793
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Nov 28, 2022
1 parent 8787008 commit d6234fb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CreateScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,15 @@ $Step.Isolation {

try {
$bestContainerOS = "The image, which matches your host OS best is $($bestContainerOsVersion.ToString())"
if ($hostOsVersion.Major -eq $bestContainerOsVersion.Major -and $hostOsVersion.Minor -eq $bestContainerOsVersion.Minor -and $hostOsVersion.Build -eq $bestContainerOsVersion.Build) {
if ($hostOsVersion.Build -ge 20348 -and $bestContainerOsVersion.Build -ge 20348) {
if ($bestContainerOsVersion -le $hostOsVersion) {
$defaultIsolation = "process"
}
else {
$defaultIsolation = "Hyper-V"
}
}
elseif ($hostOsVersion.Major -eq $bestContainerOsVersion.Major -and $hostOsVersion.Minor -eq $bestContainerOsVersion.Minor -and $hostOsVersion.Build -eq $bestContainerOsVersion.Build) {
$defaultIsolation = "Process"
}
else {
Expand Down

0 comments on commit d6234fb

Please sign in to comment.