From c816763efda4774cc0c628dca3c7dbd93c099928 Mon Sep 17 00:00:00 2001 From: Tobias Fenster Date: Thu, 18 Nov 2021 16:04:21 +0100 Subject: [PATCH] Fix version in Windows examples --- Makefile | 2 +- amd64/hello-world/nanoserver-1809/hello.txt | 2 +- amd64/hello-world/nanoserver-ltsc2022/hello.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index db74c43..9d25734 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ $(C_TARGETS): hello.c $(MUSL_GCC) '$@' | sed \ -e 's/[(]$(TARGET_ARCH)[)]/(windows-$(TARGET_ARCH), '"$$winVariant"')/g' \ -e 's/an Ubuntu container/a Windows Server container/g' \ - -e 's!ubuntu bash!mcr.microsoft.com/windows/servercore:ltsc2019 powershell!g' \ + -e 's!ubuntu bash!mcr.microsoft.com/windows/servercore:'"$${winVariant##*-}"' powershell!g' \ -e 's![$$] docker!PS C:\\> docker!g' \ > "$(@D)/$$winVariant/hello.txt"; \ done; \ diff --git a/amd64/hello-world/nanoserver-1809/hello.txt b/amd64/hello-world/nanoserver-1809/hello.txt index 92f4af7..1f39136 100644 --- a/amd64/hello-world/nanoserver-1809/hello.txt +++ b/amd64/hello-world/nanoserver-1809/hello.txt @@ -12,7 +12,7 @@ To generate this message, Docker took the following steps: to your terminal. To try something more ambitious, you can run a Windows Server container with: - PS C:\> docker run -it mcr.microsoft.com/windows/servercore:ltsc2019 powershell + PS C:\> docker run -it mcr.microsoft.com/windows/servercore:1809 powershell Share images, automate workflows, and more with a free Docker ID: https://hub.docker.com/ diff --git a/amd64/hello-world/nanoserver-ltsc2022/hello.txt b/amd64/hello-world/nanoserver-ltsc2022/hello.txt index d90a9ee..13b1f76 100644 --- a/amd64/hello-world/nanoserver-ltsc2022/hello.txt +++ b/amd64/hello-world/nanoserver-ltsc2022/hello.txt @@ -12,7 +12,7 @@ To generate this message, Docker took the following steps: to your terminal. To try something more ambitious, you can run a Windows Server container with: - PS C:\> docker run -it mcr.microsoft.com/windows/servercore:ltsc2019 powershell + PS C:\> docker run -it mcr.microsoft.com/windows/servercore:ltsc2022 powershell Share images, automate workflows, and more with a free Docker ID: https://hub.docker.com/