You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$bestContainerOS="Unable to determine the image which matches your OS best"
1216
-
$defaultIsolation="Hyper-V"
1217
-
}
1218
-
1219
-
$description="Containers can run in process isolation or hyperv isolation, see more here: https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/hyperv-container`nIf not specified, the ContainerHelper will try to detect which isolation mode will work for your OS.`nIf an image with a matching OS is found, Process isolation will be favoured, else Hyper-V will be selected.`n`nYour host OS is Windows $($hostOSVersion.ToString())`n$bestContainerOS`n"
$description+="Hyper-V is NOT enabled (you will not be able to use Hyper-V isolation on this host)"
1228
-
$defaultIsolation="Process"
1229
-
}
1230
-
}
1231
-
$options= [ordered]@{"default"="Allow the ContainerHelper to decide which isolation mode to use (on this host, this will be $defaultIsolation isolation)"; "process"="Force Process isolation"; "hyperv"="Force Hyper-V isolation" }
1192
+
$description="Containers can run in process isolation or hyperv isolation, see more here: https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/hyperv-container`nIf not specified, the ContainerHelper will try to detect which isolation mode will work for your OS.`nIf your host OS is updated and a matching container OS is found, Process isolation will be favoured, else Hyper-V will be selected."
1193
+
$options= [ordered]@{"default"="Allow the ContainerHelper to decide which isolation mode to use"; "process"="Force Process isolation"; "hyperv"="Force Hyper-V isolation" }
1232
1194
1233
1195
$isolation=Select-Value`
1234
1196
-title @'
@@ -1270,27 +1232,24 @@ $Step.Memory {
1270
1232
if ($newBaseApp) {
1271
1233
$description+="- $($newBaseApp)G for base app development`n"
1272
1234
}
1273
-
if ($isolation-eq"process"-or ($isolation-eq"default"-and$defaultIsolation-eq"Process")) {
1274
-
$description+="`nWhen running Process isolation, the container will only use the actual amount of memory used by the processes running in the container from the host.`nMemory no longer needed by the processes in the container are given back to the host`nYou can set a limit to the amount of memory, the container is allowed to use."
1275
-
$defaultDescription="blank means no limit"
1276
-
}
1277
-
else {
1278
-
$description+="`nWhen running Hyper-V isolation, the container will pre-allocate the full amount of memory given to the container.`n"
1279
-
if ($hostOsVersion.Build-ge17763) {
1280
-
$description+="Windows Server 2019 / Windows 10 1809 and later Windows versions are doing this by reserving the memory in the paging file and only using physical memory when needed.`nMemory no longer needed will be freed from physical memory again.`n"
$description+="Your paging file settings indicate that your paging file is automatically managed, you could consider changing this if you get problems with the size of the paging file.`n"
1285
-
}
1235
+
$description+="`n`nWhen running Process isolation, the container will only use the actual amount of memory used by the processes running in the container from the host. Memory no longer needed by the processes in the container are given back to the host. You can set a limit to the amount of memory, the container is allowed to use. "
1236
+
$description+="(blank means no limit)"
1237
+
1238
+
$description+="`n`nWhen running Hyper-V isolation, the container will pre-allocate the full amount of memory given to the container. "
1239
+
if ($hostOsVersion.Build-ge17763) {
1240
+
$description+="Windows Server 2019 / Windows 10 1809 and later Windows versions are doing this by reserving the memory in the paging file and only using physical memory when needed. Memory no longer needed will be freed from physical memory again. "
$description+="Your paging file settings indicate that your paging file is automatically managed, you could consider changing this if you get problems with the size of the paging file. "
1286
1245
}
1287
-
catch {}
1288
1246
}
1289
-
else {
1290
-
$description+="Windows Server 2016 and Windows 10 versions before 1809 is doing this by allocating the memory from the main memory pool.`n"
1291
-
}
1292
-
$defaultDescription="blank will use ContainerHelper default which is 4G"
1247
+
catch {}
1248
+
}
1249
+
else {
1250
+
$description+="Windows Server 2016 and Windows 10 versions before 1809 is doing this by allocating the memory from the main memory pool. "
1293
1251
}
1252
+
$description+="(blank will use ContainerHelper default which is 4G)"
1294
1253
1295
1254
$memoryLimit=Enter-Value`
1296
1255
-title @'
@@ -1304,7 +1263,7 @@ $Step.Memory {
1304
1263
|___/
1305
1264
'@`
1306
1265
-description $description`
1307
-
-question "Specify the amount of memory the container is allowed to use? ($defaultDescription)"`
1266
+
-question "Specify the amount of memory the container is allowed to use?"`
Write-Host-ForegroundColor Yellow "::WARNING::$([System.IO.Path]::GetFileName($destFile)) already exists, it looks like you have multiple app files with the same name. App filenames must be unique."
0 commit comments