From 5a2340780482b33ee5e3b5ecd490e938c0fa0fda Mon Sep 17 00:00:00 2001 From: Luther Monson Date: Sun, 31 Jan 2021 13:17:41 -0700 Subject: [PATCH] adding pwsh symlink --- Dockerfile.windows.20H2 | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile.windows.20H2 b/Dockerfile.windows.20H2 index f39a562..65949a1 100644 --- a/Dockerfile.windows.20H2 +++ b/Dockerfile.windows.20H2 @@ -50,6 +50,7 @@ RUN $URL = ('https://dl.k8s.io/{0}/kubernetes-node-windows-amd64.tar.gz' -f $env # FROM mcr.microsoft.com/powershell:nanoserver-${SERVERCORE_VERSION} # USER ContainerAdministrator # SHELL ["pwsh.exe", "-NoLogo", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] +RUN New-Item -ItemType SymbolicLink -Target "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Path "C:\Windows\System32\WindowsPowerShell\v1.0\pwsh.exe" RUN $URL = 'https://github.com/rancher/azure-cli/releases/download/v0.0.2/dist.azure-cli.zip'; \ \ Write-Host ('Downloading azure-cli from {0} ...' -f $URL); \