[Windows] Wait Containers installation feature (#4720)

This commit is contained in:
Aleksandr Chebotov
2021-12-13 14:54:37 +03:00
committed by GitHub
parent 211e6f3c29
commit ea705c4d63

View File

@@ -140,11 +140,11 @@
{
"type": "windows-restart",
"check_registry": true,
"restart_check_command": "powershell -command \"& {while ( (Get-WindowsOptionalFeature -Online -FeatureName Containers -ErrorAction SilentlyContinue).State -ne 'Enabled' ) { Start-Sleep 30; Write-Output 'InProgress' }}\"",
"restart_timeout": "10m"
},
{
"type": "powershell",
"pause_before": "2m",
"scripts": [
"{{ template_dir }}/scripts/Installers/Install-Docker.ps1",
"{{ template_dir }}/scripts/Installers/Install-PowershellCore.ps1"