Skip to content

Commit e63892e

Browse files
authored
Merge pull request rancher#170 from luthermonson/20h2-patch-v120
adding pwsh symlink
2 parents 9de14d5 + 5a23407 commit e63892e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile.windows.20H2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ RUN $URL = ('https://dl.k8s.io/{0}/kubernetes-node-windows-amd64.tar.gz' -f $env
5050
# FROM mcr.microsoft.com/powershell:nanoserver-${SERVERCORE_VERSION}
5151
# USER ContainerAdministrator
5252
# SHELL ["pwsh.exe", "-NoLogo", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
53+
RUN New-Item -ItemType SymbolicLink -Target "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Path "C:\Windows\System32\WindowsPowerShell\v1.0\pwsh.exe"
5354
RUN $URL = 'https://github.com/rancher/azure-cli/releases/download/v0.0.2/dist.azure-cli.zip'; \
5455
\
5556
Write-Host ('Downloading azure-cli from {0} ...' -f $URL); \

0 commit comments

Comments
 (0)